|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.vendor.OFByteArrayVendorData
public class OFByteArrayVendorData
Basic implementation of OFVendorData that just treats the data as a byte array. This is used if there's an OFVendor message where there's no registered OFVendorId or no specific OFVendorDataType that can be determined from the data.
Field Summary | |
---|---|
protected byte[] |
bytes
|
Constructor Summary | |
---|---|
OFByteArrayVendorData()
Construct vendor data with an empty byte array. |
|
OFByteArrayVendorData(byte[] bytes)
Construct vendor data with the specified byte array. |
Method Summary | |
---|---|
byte[] |
getBytes()
Get the associated byte array for this vendor data. |
int |
getLength()
Get the length of the vendor data. |
void |
readFrom(java.nio.ByteBuffer data,
int length)
Read the vendor data from the ByteBuffer into the byte array. |
void |
setBytes(byte[] bytes)
Set the byte array for the vendor data. |
void |
writeTo(java.nio.ByteBuffer data)
Write the vendor data bytes to the ByteBuffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] bytes
Constructor Detail |
---|
public OFByteArrayVendorData()
public OFByteArrayVendorData(byte[] bytes)
bytes
- Method Detail |
---|
public byte[] getBytes()
public void setBytes(byte[] bytes)
bytes
- the raw byte array containing the vendor data.public int getLength()
getLength
in interface OFVendorData
public void readFrom(java.nio.ByteBuffer data, int length)
readFrom
in interface OFVendorData
data
- the channel buffer from which we're deserializinglength
- the length to the end of the enclosing messagepublic void writeTo(java.nio.ByteBuffer data)
writeTo
in interface OFVendorData
data
- the channel buffer to which we're serializing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |