public class ByteObject extends java.lang.Object implements IByteObject
Constructor and Description |
---|
ByteObject() |
ByteObject(byte[] buf) |
ByteObject(int length) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getByteBuffer()
This method should return a ByteBuffer set to the position to
start writing into it.
|
byte[] |
getBytes()
Return the bytes backing this IByteObject.
|
void |
setByteBuffer(java.nio.ByteBuffer byteBuffer)
Allow the internal storage to be replaced, as it may be reallocated
externally.
|
public ByteObject()
public ByteObject(byte[] buf)
public ByteObject(int length)
public byte[] getBytes()
IByteObject
Return the bytes backing this IByteObject.
getBytes
in interface IByteObject
public java.nio.ByteBuffer getByteBuffer() throws java.io.IOException
IByteObject
getByteBuffer
in interface IByteObject
java.io.IOException
public void setByteBuffer(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
IByteObject
setByteBuffer
in interface IByteObject
java.io.IOException