|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jpalm.DataBlock net.sourceforge.jpalm.palmdb.ApplicationInfo
public class ApplicationInfo
The application info block in a Palm database.
Field Summary | |
---|---|
protected byte[] |
applicationData
|
protected java.util.List<java.lang.String> |
categoryLabels
|
protected java.util.List<net.sourceforge.juint.UInt8> |
categoryUniqueIds
|
static int |
DATA_LENGTH
The length of this DataBlock in byte s, not including the
length of applicationData . |
protected net.sourceforge.juint.UInt8 |
lastUniqueId
|
protected net.sourceforge.juint.UInt8 |
padding
|
protected net.sourceforge.juint.UInt16 |
renamedCategories
|
Constructor Summary | |
---|---|
ApplicationInfo()
Creates a application info block. |
|
ApplicationInfo(byte[] data)
Creates a new application info block from the byte array. |
Method Summary | |
---|---|
void |
deserialize(byte[] data)
Populate class properties from a byte array. |
boolean |
equals(java.lang.Object object)
|
byte[] |
getApplicationData()
Gets the application specific data. |
java.util.List<java.lang.String> |
getCategoryLabels()
Gets the category labels. |
java.util.List<net.sourceforge.juint.UInt8> |
getCategoryUniqueIds()
Gets the unique identifier for each category. |
net.sourceforge.juint.UInt8 |
getLastUniqueId()
Gets the last used unique identifier for a category. |
net.sourceforge.juint.UInt8 |
getPadding()
Gets the padding. |
net.sourceforge.juint.UInt16 |
getRenamedCategories()
Gets the renamed categories. |
byte[] |
serialize()
Create a byte array of the class properties. |
void |
setApplicationData(byte[] applicationData)
Sets the application specific data. |
void |
setCategoryLabels(java.util.List<java.lang.String> labels)
Sets the category labels. |
void |
setCategoryUniqueIds(java.util.List<net.sourceforge.juint.UInt8> ids)
Sets the unique identifier for each category. |
void |
setLastUniqueId(net.sourceforge.juint.UInt8 lastUniqueId)
Sets the last used unique identifier for a category. |
void |
setPadding(net.sourceforge.juint.UInt8 padding)
Sets the padding. |
void |
setRenamedCategories(net.sourceforge.juint.UInt16 renamedCategories)
Sets the renamed categories. |
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, not including the
length of applicationData
.
protected net.sourceforge.juint.UInt16 renamedCategories
protected java.util.List<java.lang.String> categoryLabels
protected java.util.List<net.sourceforge.juint.UInt8> categoryUniqueIds
protected net.sourceforge.juint.UInt8 lastUniqueId
protected net.sourceforge.juint.UInt8 padding
protected byte[] applicationData
Constructor Detail |
---|
public ApplicationInfo(byte[] data)
byte
array.
data
- the byte
arraydeserialize(byte[])
public ApplicationInfo()
Method Detail |
---|
public java.util.List<java.lang.String> getCategoryLabels()
public void setCategoryLabels(java.util.List<java.lang.String> labels)
Category.CATEGORY_LENGTH
and
there cannot be more than Category.NUMBER_OF_CATEGORIES
categories.
labels
- the category labelspublic java.util.List<net.sourceforge.juint.UInt8> getCategoryUniqueIds()
public void setCategoryUniqueIds(java.util.List<net.sourceforge.juint.UInt8> ids)
Category.NUMBER_OF_CATEGORIES
identifiers.
ids
- the unique identifierssetLastUniqueId(UInt8)
public net.sourceforge.juint.UInt8 getLastUniqueId()
public void setLastUniqueId(net.sourceforge.juint.UInt8 lastUniqueId)
lastUniqueId
- the last used unique identifiersetCategoryUniqueIds(List)
public net.sourceforge.juint.UInt8 getPadding()
public void setPadding(net.sourceforge.juint.UInt8 padding)
padding
- the paddingpublic net.sourceforge.juint.UInt16 getRenamedCategories()
public void setRenamedCategories(net.sourceforge.juint.UInt16 renamedCategories)
renamedCategories
- the renamed categoriespublic byte[] getApplicationData()
public void setApplicationData(byte[] applicationData)
applicationData
- the application datapublic 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 |