public class ByteArrayBinding extends java.lang.Object implements EntryBinding<byte[]>
EntryBinding that uses the entry's byte array as
the key or data object.| Constructor and Description |
|---|
ByteArrayBinding()
Creates a byte array binding.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
entryToObject(DatabaseEntry entry)
Converts a entry buffer into an Object.
|
void |
objectToEntry(byte[] object,
DatabaseEntry entry)
Converts an Object into a entry buffer.
|
public byte[] entryToObject(DatabaseEntry entry)
EntryBindingentryToObject in interface EntryBinding<byte[]>entry - is the source entry buffer.public void objectToEntry(byte[] object,
DatabaseEntry entry)
EntryBindingobjectToEntry in interface EntryBinding<byte[]>object - is the source Object.entry - is the destination entry buffer.Copyright (c) 1996, 2016 Oracle and/or its affiliates. All rights reserved.