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