|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.bdb.bind.ByteArrayBinding
public class ByteArrayBinding
A transparent binding where the data byte array is used as the object.
The Object of the binding is of type byte[] and the data is
nothing more than the byte array itself.
| Constructor Summary | |
|---|---|
ByteArrayBinding(ByteArrayFormat format)
Creates a byte array binding. |
|
| Method Summary | |
|---|---|
java.lang.Object |
dataToObject(DataBuffer data)
Converts a data buffer into an Object. |
DataFormat |
getDataFormat()
Returns the format used for the data of this binding. |
void |
objectToData(java.lang.Object object,
DataBuffer data)
Converts an Object into a data buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayBinding(ByteArrayFormat format)
format - is the format of the new binding.| Method Detail |
|---|
public java.lang.Object dataToObject(DataBuffer data)
throws java.io.IOException
DataBinding
dataToObject in interface DataBindingdata - is the source data buffer.
java.io.IOException
public void objectToData(java.lang.Object object,
DataBuffer data)
throws java.io.IOException
DataBinding
objectToData in interface DataBindingobject - is the source Object.data - is the destination data buffer.
java.io.IOExceptionpublic DataFormat getDataFormat()
DataBinding
getDataFormat in interface DataBinding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||