LibreOffice Module xmerge (master)
1
|
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 |
Contains the raw bytes for a.
in a PDB.
Note that it is not associated with a
number or ID.
Definition at line 35 of file Record.java.
|
inline |
Default constructor.
Definition at line 46 of file Record.java.
Referenced by org.openoffice.xmerge.converter.palm.Record.equals().
|
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.
d |
Definition at line 58 of file Record.java.
|
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.
obj | A object to compare with |
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
attributes.
attributes consists of (from high to low bit)
delete (1) - dirty (1) - busy (1) - secret (1) - category (4)
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.
.
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.
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.
.
ins | The InputStream
object
|
IOException | If any I/O error occurs. |
Definition at line 132 of file Record.java.
References in.
|
inline |
Write out the.
attributes and
length followed by the data in this
object.
outs | The OutputStream
|
IOException | If any I/O error occurs. |
Definition at line 117 of file Record.java.
|
private |
attributes.
Definition at line 41 of file Record.java.
Referenced by org.openoffice.xmerge.converter.palm.Record.equals(), and org.openoffice.xmerge.converter.palm.Record.getAttributes().
|
private |
array.
Definition at line 38 of file Record.java.
Referenced by org.openoffice.xmerge.converter.palm.Record.equals(), and org.openoffice.xmerge.converter.palm.Record.getBytes().