com.sleepycat.bdb.bind
Interface DataBinding

All Known Implementing Classes:
ByteArrayBinding, RecordNumberBinding, SerialBinding, TupleBinding, TupleInputBinding, TupleMarshalledBinding

public interface DataBinding

The interface implemented by all data-to-object bindings.


Method Summary
 java.lang.Object dataToObject(DataBuffer data)
          Converts a data buffer into an Object.
 DataFormat getDataFormat()
          Returns the format used for the data of this binding.
 void objectToData(java.lang.Object object, DataBuffer data)
          Converts an Object into a data buffer.
 

Method Detail

dataToObject

java.lang.Object dataToObject(DataBuffer data)
                              throws java.io.IOException
Converts a data buffer into an Object.

Parameters:
data - is the source data buffer.
Returns:
the resulting Object.
Throws:
java.io.IOException

objectToData

void objectToData(java.lang.Object object,
                  DataBuffer data)
                  throws java.io.IOException
Converts an Object into a data buffer.

Parameters:
object - is the source Object.
data - is the destination data buffer.
Throws:
java.io.IOException

getDataFormat

DataFormat getDataFormat()
Returns the format used for the data of this binding.

Returns:
the data format.