|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpalm.DataBlock
net.sourceforge.jpalm.palmdb.RecordHeader
public class RecordHeader
A record header in a Palm database.
PalmDB
,
Record
Field Summary | |
---|---|
protected net.sourceforge.juint.UInt8 |
attributes
|
static net.sourceforge.juint.UInt8 |
CATEGORY_ATTRIBUTES
The bits for category attributes. |
static int |
DATA_LENGTH
The length of this DataBlock in byte s.8 |
protected net.sourceforge.juint.UInt32 |
offset
|
static net.sourceforge.juint.UInt8 |
RECORD_ATTRIBUTES
The bits for record attributes. |
static net.sourceforge.juint.UInt8 |
RECORD_BUSY
Record is busy (locked). |
static net.sourceforge.juint.UInt8 |
RECORD_DELETE
Record is deleted. |
static net.sourceforge.juint.UInt8 |
RECORD_DIRTY
Record is dirty (modified since last HotSync). |
static net.sourceforge.juint.UInt8 |
RECORD_SECRET
Record is private. |
protected net.sourceforge.juint.UInt32 |
uniqueId
|
Constructor Summary | |
---|---|
RecordHeader()
Creates a new record header. |
|
RecordHeader(byte[] data)
Creates a new record header from the byte array. |
Method Summary | |
---|---|
void |
addAttribute(net.sourceforge.juint.UInt8 attribute)
Adds an attribute. |
void |
deserialize(byte[] data)
Populate class properties from a byte array. |
boolean |
equals(java.lang.Object object)
|
net.sourceforge.juint.UInt8 |
getAttributes()
Gets the attributes for the record this header represents. |
net.sourceforge.juint.UInt8 |
getCategory()
Gets the category identifier for the record this header represents. |
net.sourceforge.juint.UInt32 |
getOffset()
Gets the offset of the record this header represents. |
net.sourceforge.juint.UInt32 |
getUniqueId()
Gets the unique identifier of the record this header represents. |
void |
removeAttribute(net.sourceforge.juint.UInt8 attribute)
Removes an attribute. |
byte[] |
serialize()
Create a byte array of the class properties. |
void |
setAttributes(net.sourceforge.juint.UInt8 attributes)
Sets the attributes for the record this header represents. |
void |
setCategory(net.sourceforge.juint.UInt8 category)
Sets the category identifier for the record this header represents. |
void |
setOffset(net.sourceforge.juint.UInt32 offset)
Sets the offset of the record this header represents. |
void |
setUniqueId(net.sourceforge.juint.UInt32 uniqueId)
Sets the unique identifier of the record this header represents. |
Methods inherited from class net.sourceforge.jpalm.DataBlock |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DATA_LENGTH
DataBlock
in byte
s.
public static final net.sourceforge.juint.UInt8 CATEGORY_ATTRIBUTES
public static final net.sourceforge.juint.UInt8 RECORD_ATTRIBUTES
public static final net.sourceforge.juint.UInt8 RECORD_SECRET
public static final net.sourceforge.juint.UInt8 RECORD_BUSY
public static final net.sourceforge.juint.UInt8 RECORD_DIRTY
public static final net.sourceforge.juint.UInt8 RECORD_DELETE
protected net.sourceforge.juint.UInt32 offset
protected net.sourceforge.juint.UInt8 attributes
protected net.sourceforge.juint.UInt32 uniqueId
Constructor Detail |
---|
public RecordHeader(byte[] data)
byte
array.
data
- the byte
arraydeserialize(byte[])
public RecordHeader()
Method Detail |
---|
public net.sourceforge.juint.UInt8 getAttributes()
CATEGORY_ATTRIBUTES
,
RECORD_ATTRIBUTES
,
RECORD_BUSY
,
RECORD_DELETE
,
RECORD_DIRTY
,
RECORD_SECRET
public void setAttributes(net.sourceforge.juint.UInt8 attributes)
attributes
- the attributesCATEGORY_ATTRIBUTES
,
RECORD_ATTRIBUTES
,
RECORD_BUSY
,
RECORD_DELETE
,
RECORD_DIRTY
,
RECORD_SECRET
public void addAttribute(net.sourceforge.juint.UInt8 attribute)
attribute
- the attributeRECORD_BUSY
,
RECORD_DELETE
,
RECORD_DIRTY
,
RECORD_SECRET
public void removeAttribute(net.sourceforge.juint.UInt8 attribute)
attribute
- the attributeRECORD_BUSY
,
RECORD_DELETE
,
RECORD_DIRTY
,
RECORD_SECRET
public net.sourceforge.juint.UInt8 getCategory()
CATEGORY_ATTRIBUTES
,
getAttributes()
,
ApplicationInfo.getCategoryUniqueIds()
,
ApplicationInfo.getCategoryLabels()
,
Category
public void setCategory(net.sourceforge.juint.UInt8 category)
category
- the category identifierCATEGORY_ATTRIBUTES
,
setAttributes(UInt8)
,
ApplicationInfo.setCategoryUniqueIds(java.util.List)
,
ApplicationInfo.setCategoryLabels(java.util.List)
,
Category
public net.sourceforge.juint.UInt32 getOffset()
public void setOffset(net.sourceforge.juint.UInt32 offset)
offset
- the offsetpublic net.sourceforge.juint.UInt32 getUniqueId()
public void setUniqueId(net.sourceforge.juint.UInt32 uniqueId)
0
.
uniqueId
- the unique identifierpublic void deserialize(byte[] data)
DataBlock
byte
array.
deserialize
in class DataBlock
data
- the byte
arraypublic byte[] serialize()
DataBlock
byte
array of the class properties.
serialize
in class DataBlock
byte
arraypublic boolean equals(java.lang.Object object)
equals
in class DataBlock
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |