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)
EntryBinding
entryToObject
in interface EntryBinding<byte[]>
entry
- is the source entry buffer.public void objectToEntry(byte[] object, DatabaseEntry entry)
EntryBinding
objectToEntry
in interface EntryBinding<byte[]>
object
- is the source Object.entry
- is the destination entry buffer.Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.