LibreOffice Module xmerge (master) 1
|
Contains the raw bytes for a Record
in a PDB.
More...
Public Member Functions | |
Record () | |
Default constructor. More... | |
Record (byte[] d) | |
Constructor to create a Record filled with bytes. More... | |
Record (byte[] d, byte attrs) | |
Constructor to create a Record filled with bytes and assign Record attributes. More... | |
int | getSize () |
This method returns the number of bytes in this object. More... | |
byte[] | getBytes () |
This method returns the contents of this Object . More... | |
byte | getAttributes () |
void | write (OutputStream outs) throws IOException |
Write out the Record attributes and Record length followed by the data in this Record object. More... | |
void | read (InputStream ins) throws IOException |
Read the necessary data to create a PDB from the InputStream . More... | |
boolean | equals (Object obj) |
Override equals method of Object . More... | |
int | hashCode () |
Private Attributes | |
byte[] | data |
Record byte array. More... | |
byte | attributes = 0 |
Record attributes. More... | |
Contains the raw bytes for a Record
in a PDB.
Note that it is not associated with a Record
number or ID.
Definition at line 35 of file Record.java.
|
inline |
Default constructor.
Definition at line 46 of file Record.java.
References org.openoffice.xmerge.converter.palm.Record.data.
Referenced by org.openoffice.xmerge.converter.palm.Record.equals().
|
inline |
Constructor to create a Record
filled with bytes.
Note that this does not check for 64k Record
sizes. User of this class must check for that.
d | byte array contents for this object. |
Definition at line 58 of file Record.java.
References d.
Constructor to create a Record
filled with bytes and assign Record
attributes.
Note that this does not check for 64k Record
sizes. User of this class must check for that.
d | byte array contents for this object. |
attrs | Record attributes. |
Definition at line 72 of file Record.java.
References org.openoffice.xmerge.converter.palm.Record.attributes, d, org.openoffice.xmerge.converter.palm.Record.data, and System.
|
inline |
Override equals method of Object
.
Two Record
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.
obj | A Record object to compare with |
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().
|
inline |
This method returns the Record
attributes.
Record
attributes consists of (from high to low bit) delete (1) - dirty (1) - busy (1) - secret (1) - category (4)
Record
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().
|
inline |
This method returns the contents of this Object
.
byte
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().
|
inline |
This method returns the number of bytes in this object.
Definition at line 83 of file Record.java.
References org.openoffice.xmerge.converter.palm.Record.data.
Referenced by org.openoffice.xmerge.converter.palm.Record.equals(), and org.openoffice.xmerge.converter.palm.PdbEncoder.write().
|
inline |
Definition at line 172 of file Record.java.
|
inline |
Read the necessary data to create a PDB from the InputStream
.
ins | The InputStream to read data from in order to restore the object . |
IOException | If any I/O error occurs. |
Definition at line 132 of file Record.java.
References org.openoffice.xmerge.converter.palm.Record.attributes, org.openoffice.xmerge.converter.palm.Record.data, and in.
|
inline |
Write out the Record
attributes and Record
length followed by the data in this Record
object.
outs | The OutputStream to write the object. |
IOException | If any I/O error occurs. |
Definition at line 117 of file Record.java.
References org.openoffice.xmerge.converter.palm.Record.attributes, and org.openoffice.xmerge.converter.palm.Record.data.
|
private |
Record
attributes.
Definition at line 41 of file Record.java.
Referenced by org.openoffice.xmerge.converter.palm.Record.equals(), org.openoffice.xmerge.converter.palm.Record.getAttributes(), org.openoffice.xmerge.converter.palm.Record.read(), org.openoffice.xmerge.converter.palm.Record.Record(), and org.openoffice.xmerge.converter.palm.Record.write().
|
private |
Record
byte
array.
Definition at line 38 of file Record.java.
Referenced by org.openoffice.xmerge.converter.palm.Record.equals(), org.openoffice.xmerge.converter.palm.Record.getBytes(), org.openoffice.xmerge.converter.palm.Record.getSize(), org.openoffice.xmerge.converter.palm.Record.read(), org.openoffice.xmerge.converter.palm.Record.Record(), and org.openoffice.xmerge.converter.palm.Record.write().