19package org.openoffice.xmerge.converter.palm;
21import java.io.UnsupportedEncodingException;
123 throws UnsupportedEncodingException {
147 throws UnsupportedEncodingException {
186 private void store(
byte[]
bytes)
throws UnsupportedEncodingException {
195 int len = (
bytes.length < lastIndex)?
bytes.length: lastIndex;
198 for (
i = 0;
i < len;
i++) {
314 boolean bool =
false;
316 if (obj instanceof
PalmDB) {
331 for (
int i = 0;
i <
bName.length;
i++) {
This class contains data for a single Palm database for use during a conversion process.
Record[] records
List of Record objects.
void store(byte[] bytes)
This private method is mainly used by the constructors above.
void setAttributes(int creatorID, int typeID, int version, short attribute)
Set the attributes for the PalmDB object.
PalmDB(byte[] name, int creatorID, int typeID, int version, short attribute, Record[] recs)
Constructor to create object with Record objects.
int getVersion()
Returns version.
int getCreatorID()
Returns creator ID.
short attribute
PDB attribute - flags for the database.
byte[] getPDBNameBytes()
Return the PDB name associated with this object in byte array of exact length of 32 bytes.
byte[] bName
PDB name in bytes.
String getPDBNameString()
Return the PDB name associated with this object.
PalmDB(int creatorID, int typeID, int version, short attribute)
Default constructor.
Record[] getRecords()
Return the list of Record objects.
static final int NAME_LENGTH
Number of bytes for the name field in the PDB.
short getAttribute()
Returns attribute flag.
int getRecordCount()
Return the number of Records contained in this PDB PalmDB object.
PalmDB(String name, int creatorID, int typeID, int version, short attribute, Record[] recs)
Constructor to create PalmDB object with Record objects.
int getTypeID()
Returns type ID.
boolean equals(Object obj)
Override equals method of Object.
Record getRecord(int index)
Return the specific Record object associated with the Record number.
String sName
PDB name in String.
Contains common static methods and constants for use within the package.
Contains the raw bytes for a Record in a PDB.
std::vector< sal_uInt8 > bytes