com.timeindexing.data
Class ByteBufferItem

java.lang.Object
  extended bycom.timeindexing.data.ByteBufferItem
All Implemented Interfaces:
DataItem

public class ByteBufferItem
extends java.lang.Object
implements DataItem

A item of data presented by a data reader This is an implementation of ByteBufferItem.


Constructor Summary
ByteBufferItem(java.nio.ByteBuffer bb)
          Construct a ByteBufferItem from a ByteBuffer.
ByteBufferItem(java.nio.ByteBuffer bb, DataType type)
          Construct a ByteBufferItem from a ByteBuffer and a DataType
 
Method Summary
 java.nio.ByteBuffer getBytes()
          Get the data itself
 DataType getDataType()
          Get the DataType of the DataItem.
 long getSize()
          Get the size of the item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferItem

public ByteBufferItem(java.nio.ByteBuffer bb)
Construct a ByteBufferItem from a ByteBuffer.


ByteBufferItem

public ByteBufferItem(java.nio.ByteBuffer bb,
                      DataType type)
Construct a ByteBufferItem from a ByteBuffer and a DataType

Method Detail

getBytes

public java.nio.ByteBuffer getBytes()
Get the data itself

Specified by:
getBytes in interface DataItem

getSize

public long getSize()
Get the size of the item

Specified by:
getSize in interface DataItem

getDataType

public DataType getDataType()
Get the DataType of the DataItem.

Specified by:
getDataType in interface DataItem