LibreOffice Module xmerge (master)  1
Public Member Functions | Private Attributes | List of all members
org.openoffice.xmerge.converter.palm.Record Class Reference

Contains the raw bytes for a. More...

Public Member Functions

 Record ()
 Default constructor. More...
 
 Record (byte[] d)
 Constructor to create a. More...
 
 Record (byte[] d, byte attrs)
 Constructor to create a. More...
 
int getSize ()
 This method returns the number of bytes in this object. More...
 
byte[] getBytes ()
 This method returns the contents of this. More...
 
byte getAttributes ()
 
void write (OutputStream outs) throws IOException
 Write out the. More...
 
void read (InputStream ins) throws IOException
 Read the necessary data to create a PDB from the. More...
 
boolean equals (Object obj)
 Override equals method of. More...
 
int hashCode ()
 

Private Attributes

byte[] data
 
byte attributes = 0
 

Detailed Description

Contains the raw bytes for a.

in a PDB.

Note that it is not associated with a

number or ID.

See also
PalmDocument
PalmDB

Definition at line 35 of file Record.java.

Constructor & Destructor Documentation

org.openoffice.xmerge.converter.palm.Record.Record ( )
inline

Default constructor.

Definition at line 46 of file Record.java.

Referenced by org.openoffice.xmerge.converter.palm.Record.equals().

org.openoffice.xmerge.converter.palm.Record.Record ( byte[]  d)
inline

Constructor to create a.

filled with bytes.

Note that this does not check for 64k

sizes. User of this class must check for that.

Parameters
d

Definition at line 58 of file Record.java.

org.openoffice.xmerge.converter.palm.Record.Record ( byte[]  d,
byte  attrs 
)
inline

Constructor to create a.

filled with bytes and assign

attributes.

Note that this does not check for 64k

sizes. User of this class must check for that.

Parameters
d

Definition at line 72 of file Record.java.

References System.

Member Function Documentation

boolean org.openoffice.xmerge.converter.palm.Record.equals ( Object  obj)
inline

Override equals method of.

.

Two

objects are equal if they contain the same bytes in the array and the same attributes.

This is used primarily for testing purposes only for now.

Parameters
objA object to compare with
Returns
true
if
obj
is equal, otherwise
false
.

Definition at line 153 of file Record.java.

References org.openoffice.xmerge.converter.palm.Record.attributes, org.openoffice.xmerge.converter.palm.Record.data, org.openoffice.xmerge.converter.palm.Record.getAttributes(), org.openoffice.xmerge.converter.palm.Record.getSize(), i, and org.openoffice.xmerge.converter.palm.Record.Record().

byte org.openoffice.xmerge.converter.palm.Record.getAttributes ( )
inline

This method returns the

attributes.

attributes consists of (from high to low bit)

delete (1) - dirty (1) - busy (1) - secret (1) - category (4)
Returns
attribute.

Definition at line 105 of file Record.java.

References org.openoffice.xmerge.converter.palm.Record.attributes.

Referenced by org.openoffice.xmerge.converter.palm.Record.equals(), and org.openoffice.xmerge.converter.palm.PdbEncoder.write().

byte [] org.openoffice.xmerge.converter.palm.Record.getBytes ( )
inline

This method returns the contents of this.

.

Returns
Contents in array

Definition at line 92 of file Record.java.

References org.openoffice.xmerge.converter.palm.Record.data.

Referenced by org.openoffice.xmerge.converter.palm.PdbEncoder.write().

int org.openoffice.xmerge.converter.palm.Record.getSize ( )
inline

This method returns the number of bytes in this object.

Returns
Number of bytes in this object.

Definition at line 83 of file Record.java.

Referenced by org.openoffice.xmerge.converter.palm.Record.equals(), and org.openoffice.xmerge.converter.palm.PdbEncoder.write().

int org.openoffice.xmerge.converter.palm.Record.hashCode ( )
inline

Definition at line 172 of file Record.java.

void org.openoffice.xmerge.converter.palm.Record.read ( InputStream  ins) throws IOException
inline

Read the necessary data to create a PDB from the.

InputStream

.

Parameters
insThe
InputStream
to read data from in order to restore the
object
.
Exceptions
IOExceptionIf any I/O error occurs.

Definition at line 132 of file Record.java.

void org.openoffice.xmerge.converter.palm.Record.write ( OutputStream  outs) throws IOException
inline

Write out the.

attributes and

length followed by the data in this

object.

Parameters
outsThe
OutputStream
to write the object.
Exceptions
IOExceptionIf any I/O error occurs.

Definition at line 117 of file Record.java.

Member Data Documentation

byte org.openoffice.xmerge.converter.palm.Record.attributes = 0
private
byte [] org.openoffice.xmerge.converter.palm.Record.data
private

The documentation for this class was generated from the following file: