Inheritance diagram for com::sleepycat::bind::tuple::ByteBinding:
Public Member Functions | |
Object | entryToObject (TupleInput input) |
void | objectToEntry (Object object, TupleOutput output) |
Static Public Member Functions | |
static byte | entryToByte (DatabaseEntry entry) |
static void | byteToEntry (byte val, DatabaseEntry entry) |
Protected Member Functions | |
TupleOutput | getTupleOutput (Object object) |
TupleBinding
for a Byte
primitive wrapper or a byte
primitive.There are two ways to use this class:
Definition at line 29 of file ByteBinding.java.
|
Converts a simple
Definition at line 70 of file ByteBinding.java. References com::sleepycat::bind::tuple::TupleBase::outputToEntry(). |
|
Converts an entry buffer into a simple
Definition at line 58 of file ByteBinding.java. References com::sleepycat::bind::tuple::TupleBase::entryToInput(). |
|
Constructs a key or data object from a TupleInput entry.
Implements com::sleepycat::bind::tuple::TupleBinding. Definition at line 34 of file ByteBinding.java. References com::sleepycat::bind::tuple::TupleInput::readByte(). |
|
Returns an empty TupleOutput instance that will be used by the tuple binding or key creator. The default implementation of this method creates a new TupleOutput with an initial buffer size that can be changed using the setTupleBufferSize method. This method may be overridden to return a TupleOutput instance. For example, an instance per thread could be created and returned by this method. If a TupleOutput instance is reused, be sure to call its com.sleepycat.util.FastOutputStream#reset method before each use.
Reimplemented from com::sleepycat::bind::tuple::TupleBase. Definition at line 46 of file ByteBinding.java. |
|
Converts a key or data object to a tuple entry.
Implements com::sleepycat::bind::tuple::TupleBinding. Definition at line 40 of file ByteBinding.java. References com::sleepycat::bind::tuple::TupleOutput::writeByte(). |