|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataBuffer
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. |
java.lang.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(java.lang.Object formation)
Sets the formation associated with the data in this buffer. |
Method Detail |
---|
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.byte[] getDataBytes()
int getDataOffset()
int getDataLength()
void setDataFormation(java.lang.Object formation)
formation
- is Object to set.java.lang.Object getDataFormation()
void clearDataFormation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |