com.syncbuilder.storage
Class CategoryAppBlock
java.lang.Object
|
+--com.syncbuilder.storage.Block
|
+--com.syncbuilder.storage.AppBlock
|
+--com.syncbuilder.storage.CategoryAppBlock
- Direct Known Subclasses:
- AppBlock, AppBlock, AppBlock, AppBlock, AppBlock, AppBlock
- public class CategoryAppBlock
- extends AppBlock
The foundation of all AppBlocks which can store categories.
The Palm OS has the built-in capability to assign each record
of a database to one of 16 categories. The names of these
categories are stored in an AppBlock which is associated with that database.
The name of each category is limited to a length of 15 characters.
- See Also:
- Serialized Form
| Fields inherited from class com.syncbuilder.storage.Block |
raw |
|
Method Summary |
java.lang.String |
describe()
|
boolean |
equals(java.lang.Object other)
Test for equality with another Object.
|
void |
fill()
|
java.lang.String |
getCategoryName(int category)
Return the name of the specified category, or null. |
byte[] |
pack()
|
protected void |
packCategories(byte[] buf)
|
void |
unpack(byte[] data)
|
| Methods inherited from class com.syncbuilder.storage.Block |
toString |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
LENGTH
public static final int LENGTH
- The fixed-length size of the native representation of the CategoryAppBlock
categoryRenamed
public boolean[] categoryRenamed
categoryLastUniqueID
public int categoryLastUniqueID
categoryName
public java.lang.String[] categoryName
categoryID
public int[] categoryID
CategoryAppBlock
public CategoryAppBlock()
CategoryAppBlock
public CategoryAppBlock(byte[] contents)
unpack
public void unpack(byte[] data)
throws java.lang.IllegalArgumentException
- Overrides:
- unpack in class Block
pack
public byte[] pack()
- Overrides:
- pack in class Block
fill
public void fill()
- Overrides:
- fill in class Block
getCategoryName
public java.lang.String getCategoryName(int category)
- Return the name of the specified category, or
null.
equals
public boolean equals(java.lang.Object other)
- Test for equality with another Object.
Mostly used for testing.
- Overrides:
- equals in class java.lang.Object
describe
public java.lang.String describe()
- Overrides:
- describe in class AppBlock
packCategories
protected void packCategories(byte[] buf)
This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.