|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jbase.jremote.io.ByteObject
public class ByteObject
Constructor Summary | |
---|---|
ByteObject()
|
|
ByteObject(byte[] buf)
|
|
ByteObject(int length)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteObject()
public ByteObject(byte[] buf)
public ByteObject(int length)
Method Detail |
---|
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
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |