com.sleepycat.bind.tuple
public class ByteBinding extends TupleBinding
TupleBinding
for a Byte
primitive
wrapper or a byte
primitive.
There are two ways to use this class:
Method Summary | |
---|---|
static void | byteToEntry(byte val, DatabaseEntry entry)
Converts a simple byte value into an entry buffer.
|
static byte | entryToByte(DatabaseEntry entry)
Converts an entry buffer into a simple byte value.
|
Object | entryToObject(TupleInput input) |
protected TupleOutput | getTupleOutput(Object object) |
void | objectToEntry(Object object, TupleOutput output) |
byte
value into an entry buffer.
Parameters: val is the source value. entry is the destination entry buffer.
byte
value.
Parameters: entry is the source entry buffer.
Returns: the resulting value.