Package com.sleepycat.bind
Class ByteArrayBinding
java.lang.Object
com.sleepycat.bind.ByteArrayBinding
- All Implemented Interfaces:
EntryBinding<byte[]>
A pass-through
EntryBinding that uses the entry's byte array as
the key or data object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]entryToObject(DatabaseEntry entry) Converts a entry buffer into an Object.voidobjectToEntry(byte[] object, DatabaseEntry entry) Converts an Object into a entry buffer.
-
Constructor Details
-
ByteArrayBinding
public ByteArrayBinding()Creates a byte array binding.
-
-
Method Details
-
entryToObject
Description copied from interface:EntryBindingConverts a entry buffer into an Object.- Specified by:
entryToObjectin interfaceEntryBinding<byte[]>- Parameters:
entry- is the source entry buffer.- Returns:
- the resulting Object.
-
objectToEntry
Description copied from interface:EntryBindingConverts an Object into a entry buffer.- Specified by:
objectToEntryin interfaceEntryBinding<byte[]>- Parameters:
object- is the source Object.entry- is the destination entry buffer.
-