|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used in bindings to access the data as a byte array.
Each data buffer may contain a formation Object that is associated with the data. The formation may be used by bindings to cache an internal representation of the data that is specific to the format but can be used by all bindings. The formation must be cleared whenever the data in the buffer is changed.
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. |
Method Detail |
public void setData(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.public byte[] getDataBytes()
public int getDataOffset()
public int getDataLength()
public void setDataFormation(Object formation)
formation
- is Object to set.public Object getDataFormation()
public void clearDataFormation()
|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |