com.timeindexing.data
Class SerializableItem

java.lang.Object
  extended by com.timeindexing.data.AbstractDataItem
      extended by com.timeindexing.data.SerializableItem
All Implemented Interfaces:
DataItem

public class SerializableItem
extends AbstractDataItem
implements DataItem

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


Constructor Summary
SerializableItem(java.io.Serializable o)
          Construct a SerializableItem from an object that is serializable
 
Method Summary
 java.nio.ByteBuffer getBytes()
          Get the data itself
 DataType getDataType()
          Get the DataType of the DataItem.
 java.lang.Object getObject()
          Get the Serializable object from this SerializableItem.
 long getSize()
          Get the size of the item
 
Methods inherited from class com.timeindexing.data.AbstractDataItem
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableItem

public SerializableItem(java.io.Serializable o)
Construct a SerializableItem from an object that is serializable

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

getObject

public java.lang.Object getObject()
Get the Serializable object from this SerializableItem.

Specified by:
getObject in interface DataItem
Returns:
a Serializable object


Timeindexing 2008