jremote jbase5.2.1

com.jbase.jremote.io
Class ByteObject

java.lang.Object
  extended by com.jbase.jremote.io.ByteObject
All Implemented Interfaces:
IByteObject

public class ByteObject
extends java.lang.Object
implements IByteObject


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

ByteObject

public ByteObject()

ByteObject

public ByteObject(byte[] buf)

ByteObject

public ByteObject(int length)
Method Detail

getBytes

public byte[] getBytes()
Description copied from interface: IByteObject

Return the bytes backing this IByteObject.

Specified by:
getBytes in interface IByteObject

getByteBuffer

public java.nio.ByteBuffer getByteBuffer()
                                  throws java.io.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:
java.io.IOException

setByteBuffer

public void setByteBuffer(java.nio.ByteBuffer byteBuffer)
                   throws java.io.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:
java.io.IOException

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.