|
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.DLPRecord
A class to hold a handheld record of information. This class holds a single record of data.
Field Summary | |
---|---|
static byte |
ARCHIVED
A flag to denote that this record is flagged for archival. |
protected byte |
attributes
A field to store this records attributes bitmap. |
static byte |
BUSY
A flag to denote that this record is busy. |
protected byte |
category
A field to store this records category ID. |
protected byte[] |
data
A field to store this records data array. |
static byte |
DATA_INCLUDED
A flag to denote that this record includes data. |
static byte |
DELETE_ALL_IN_CATEGORY
A flag to signify that all records in the specified category of the specified database should be deleted during a record delete operation. |
static byte |
DELETE_ALL_RECORDS
A flag to signify that all records in the specified database should be deleted during a record delete operation. |
static byte |
DELETED
A flag to denote that this record has been deleted. |
static byte |
DIRTY
A flag to denote that this record is dirty. |
protected char |
index
A field to store this records index within its database. |
protected byte[] |
inputData
A byte array to hold the input data array. |
protected int |
recordID
A field to store this records unique ID number. |
protected char |
recordSize
A field to store the size of this record. |
static byte |
SECRET
A flag to denote that this record is secret. |
static byte |
SORT_DATABASE
A flag to denote that the database is sorted. |
Constructor Summary | |
---|---|
DLPRecord()
Empty constructor. |
|
DLPRecord(byte[] inputData)
Create a new DLPRecord object from an array of bytes. |
|
DLPRecord(DLPRecord dlp)
Create a new DLPRecord object from another DLPRecord type. |
Method Summary | |
---|---|
boolean |
checkAttribute(byte value)
Checks wether or not the specified attribute is present in this record. |
protected void |
generateData()
Gererates a data array from a set of object fields. |
byte |
getAttributes()
Retreives the attributes for this record. |
byte |
getCategory()
Retreives the category ID for this record. |
byte[] |
getData()
Retreives the data for this record. |
char |
getIndex()
Retreives the index for this record. |
int |
getRecordID()
Retreives the record ID for this record. |
char |
getRecordSize()
Retreives the reported size for this record. |
protected void |
parseFields()
Parses the record data array into a set of fields. |
void |
setAttributes(byte flags)
Set the attributes to the specified value. |
void |
setCategory(byte categoryID)
Set the category ID for this record. |
void |
setData(byte[] inputData)
Set the data byte array for this record. |
void |
setIndex(char i)
Set the index for this record. |
void |
setRecordID(int id)
Set the unique record ID for this record. |
void |
setRecordSize(char size)
Set the record size for this record. |
java.lang.String |
toString()
Converts this record to a human-readable hexdump String. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
protected byte[] inputData
protected int recordID
protected char index
protected char recordSize
protected byte attributes
protected byte category
protected byte[] data
public static final byte DELETE_ALL_RECORDS
public static final byte DELETE_ALL_IN_CATEGORY
public static final byte SORT_DATABASE
public static final byte DELETED
public static final byte DIRTY
public static final byte BUSY
public static final byte SECRET
public static final byte ARCHIVED
public static final byte DATA_INCLUDED
Constructor Detail |
public DLPRecord()
public DLPRecord(DLPRecord dlp)
public DLPRecord(byte[] inputData) throws DLPFunctionCallException
inputData
- the array of bytes from the handheld representing a record to be parsed.Method Detail |
public boolean checkAttribute(byte value)
value
- the attribute to be tested.DELETED
,
DIRTY
,
BUSY
,
SECRET
,
ARCHIVED
protected void generateData()
public byte getAttributes()
public byte getCategory()
public final byte[] getData()
public char getIndex()
public int getRecordID()
public char getRecordSize()
protected void parseFields()
public void setAttributes(byte flags)
flags
- the attribute bitmap to use.public void setCategory(byte categoryID)
categoryID
- the category ID for this record.public void setData(byte[] inputData)
inputData
- the data byte array for this record.public void setIndex(char i)
i
- the index for this record.public void setRecordID(int id)
id
- the unique record ID for this record.public void setRecordSize(char size)
size
- the record size for this record.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 |