|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IByteObject
This interface allows a client to optimise the serialization of byte buffers. This may be neccessary to avoid unneccessary copying or creation of byte arrays.
Method Summary | |
---|---|
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(ByteBuffer byteBuffer)
Allow the internal storage to be replaced, as it may be reallocated externally. |
Method Detail |
---|
ByteBuffer getByteBuffer() throws IOException
IOException
void setByteBuffer(ByteBuffer byteBuffer) throws IOException
IOException
byte[] getBytes()
Return the bytes backing this IByteObject.
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |