|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICorrelatorData
This interface defines the concept of a correlator, a type of object capable of holding customized context information. The key property of a correlator is that it can be transformed into differet formats, such as binary and XML.
| Method Summary | |
|---|---|
IApplication |
getApplication()
Returns the application associated with this correlator where application-instance-specific data can be retrieved. |
int |
readBinary(byte[] data,
int offset,
int length)
Converts an array of bytes into a correlator. |
int |
readXML(java.lang.StringBuffer data,
int offset,
int length)
Converts an XML fragment into a correlator. |
int |
writeBinary(byte[] data,
int offset,
int length)
Converts this correlator into an array of bytes, and saves them in the buffer. |
java.lang.StringBuffer |
writeXML(java.lang.StringBuffer data)
Converts this correlator into an XML fragment, and saves them in the string buffer. |
| Method Detail |
|---|
IApplication getApplication()
int readBinary(byte[] data,
int offset,
int length)
throws InsufficientBufferLengthException
data - the data buffer from which the correlation information is to be readoffset - the starting position to read the correltion datalength - the length (in bytes) of the entire buffer for the correlation data
InsufficientBufferLengthException - If the buffer is not long enough for holding the correlation data
int writeBinary(byte[] data,
int offset,
int length)
throws InsufficientBufferLengthException
data - the data buffer to which the correlator bytes are to be writtenoffset - the starting position to write the correltion datalength - the length (in bytes) of the buffer for the correlation data
InsufficientBufferLengthException - If the buffer is not long enough for holding the correlation data
int readXML(java.lang.StringBuffer data,
int offset,
int length)
data - the data buffer from which the correlation information is to be readoffset - the starting position to read the correltion datalength - the length (in characters) of the entire buffer for the correlation data
java.lang.StringBuffer writeXML(java.lang.StringBuffer data)
data - the data buffer to which the correlator information is to be written
|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||