|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.Util.DLPBlock
A class that represents database information blocks. This class stores a data block. This is typically used in Palm databases to store the application block and the sort block.
Field Summary | |
---|---|
protected int |
blockSize
Holds the size of the block. |
protected byte[] |
data
Holds the data array representing this block. |
Constructor Summary | |
---|---|
DLPBlock()
Creates an empty block, with size 0. |
|
DLPBlock(byte[] inputData)
Creates a new block based on the input byte array. |
Method Summary | |
---|---|
protected void |
generateData()
Generates the data block from a set of class fields. |
int |
getBlockSize()
Returns the size of this block. |
byte[] |
getData()
Retreives the byte array containing the data in this block. |
protected void |
parseFields()
Parses the data block into a set of fields. |
void |
setData(byte[] data)
Sets the data byte array for this block. |
java.lang.String |
toString()
Returns a human-readable hex representation of the block data. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
protected int blockSize
protected byte[] data
Constructor Detail |
public DLPBlock()
public DLPBlock(byte[] inputData) throws DLPFunctionCallException
inputData
- the input byte array to be parsed.DLPFunctionCallException
- thrown if any parsing problem is encountered.Method Detail |
protected void generateData()
public int getBlockSize()
public byte[] getData()
protected void parseFields()
public void setData(byte[] data)
data
- the byte array containing block information.public java.lang.String toString()
toString
in class java.lang.Object
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |