com.jbase.jremote.io
Class ByteObject
java.lang.Object
com.jbase.jremote.io.ByteObject
- All Implemented Interfaces:
- IByteObject
public class ByteObject
- extends Object
- implements IByteObject
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteObject
public ByteObject()
ByteObject
public ByteObject(byte[] buf)
ByteObject
public ByteObject(int length)
getBytes
public byte[] getBytes()
- Description copied from interface:
IByteObject
Return the bytes backing this IByteObject.
- Specified by:
getBytes
in interface IByteObject
getByteBuffer
public ByteBuffer getByteBuffer()
throws IOException
- Description copied from interface:
IByteObject
- This method should return a ByteBuffer set to the position to
start writing into it. NOTE - if reading data the ByteBuffer
will be expanded to fit the amount of data being read.
- Specified by:
getByteBuffer
in interface IByteObject
- Throws:
IOException
setByteBuffer
public void setByteBuffer(ByteBuffer byteBuffer)
throws IOException
- Description copied from interface:
IByteObject
- Allow the internal storage to be replaced, as it may be reallocated
externally.
- Specified by:
setByteBuffer
in interface IByteObject
- Throws:
IOException
Copyright © 2016 TEMENOS. All Rights Reserved.