|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sleepycat.bdb.bind.SimpleBuffer
A simple data buffer implementation that allows using bindings for arbitrary data outside the context of a database.
Constructor Summary | |
SimpleBuffer()
Creates a simple buffer with null data, an offset of zero and a length of zero. |
|
SimpleBuffer(byte[] data)
Creates a simple buffer with the given data with an offset of zero and a length equal to the length of the data array. |
|
SimpleBuffer(byte[] data,
int offset,
int length)
Creates a simple buffer with the given data, offset and length. |
Method Summary | |
void |
clearDataFormation()
Sets the formation associated with the data in this buffer to null. |
byte[] |
getDataBytes()
Returns the byte array of the data buffer. |
Object |
getDataFormation()
Returns the formation associated with the data in this buffer. |
int |
getDataLength()
Returns the byte length of the data in the array. |
int |
getDataOffset()
Returns the byte offset of the data in the array. |
void |
setData(byte[] data,
int offset,
int length)
Sets the data in this buffer to the given value. |
void |
setDataFormation(Object formation)
Sets the formation associated with the data in this buffer. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleBuffer()
public SimpleBuffer(byte[] data)
data
- is the data array and must not be modified after this
method is called.public SimpleBuffer(byte[] data, int offset, int length)
data
- is the data array and must not be modified after this
method is called.offset
- is the byte offset of the data in the array.length
- is the byte length of the data in the array.Method Detail |
public void setData(byte[] data, int offset, int length)
DataBuffer
setData
in interface DataBuffer
data
- is the data array and must not be modified after this
method is called.offset
- is the byte offset of the data in the array.length
- is the byte length of the data in the array.public byte[] getDataBytes()
DataBuffer
getDataBytes
in interface DataBuffer
public int getDataOffset()
DataBuffer
getDataOffset
in interface DataBuffer
public int getDataLength()
DataBuffer
getDataLength
in interface DataBuffer
public void setDataFormation(Object formation)
DataBuffer
setDataFormation
in interface DataBuffer
formation
- is Object to set.public Object getDataFormation()
DataBuffer
getDataFormation
in interface DataBuffer
public void clearDataFormation()
DataBuffer
clearDataFormation
in interface DataBuffer
|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |