ist.palcom.base
Class ByteArrayBuffer

java.lang.Object
  extended by ist.palcom.base.Object
      extended by ist.palcom.base.ByteBuffer
          extended by ist.palcom.base.ByteArrayBuffer

public class ByteArrayBuffer
extends ByteBuffer

ByteArrayBuffer is a ByteBuffer that uses a ByteArray as storage.


Constructor Summary
ByteArrayBuffer(ByteArray storage)
          Creates a ByteArrayBuffer with the specified ByteArray as storage.
 
Method Summary
 ByteArray data()
          Returns the storage of the ByteArrayBuffer.
 
Methods inherited from class ist.palcom.base.ByteBuffer
at, clear, flip, get, getInt, getIntAt, getShort, getShortAt, hasRemaining, init, isLittleEndian, length, limit, limit, position, position, put, putInt, putInt, putShort, putShort, remaining, rewind, setLittleEndian
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayBuffer

public ByteArrayBuffer(ByteArray storage)
Creates a ByteArrayBuffer with the specified ByteArray as storage.

Parameters:
storage - ByteArray the ByteArray to use as storage.
Method Detail

data

public ByteArray data()
Returns the storage of the ByteArrayBuffer.

Returns:
ByteArray the storage of the ByteArrayBuffer.