LibreOffice Module xmerge (master) 1
|
A PalmDocument
is palm implementation of the Document
interface.
More...
Public Member Functions | |
PalmDocument (InputStream is) throws IOException | |
Constructor to create a PalmDocument from an InputStream . More... | |
PalmDocument (String name, int creatorID, int typeID, int version, short attribute, Record[] recs) throws UnsupportedEncodingException | |
Constructor to create a PalmDocument with Record objects. More... | |
void | read (InputStream is) throws IOException |
Reads in a file from the InputStream . More... | |
void | write (OutputStream os) throws IOException |
Writes the PalmDocument to an OutputStream . More... | |
PalmDB | getPdb () |
Returns the PalmDB contained in this object. More... | |
void | setPdb (PalmDB pdb) |
Sets the PalmDocument to a new PalmDB value. More... | |
String | getFileName () |
Returns the name of the file. More... | |
String | getName () |
Returns the Document name. More... | |
void | write (OutputStream os) throws IOException |
Writes out the Document content to the specified OutputStream . More... | |
void | read (InputStream is) throws IOException |
Reads the content from the InputStream into the Document . More... | |
String | getName () |
Returns the Document name with no file extension. More... | |
String | getFileName () |
Returns the Document name with file extension. More... | |
Private Attributes | |
PalmDB | pdb |
The internal representation of a pdb. More... | |
String | fileName |
The file name. More... | |
A PalmDocument
is palm implementation of the Document
interface.
This implementation allows the Palm device format to be read via an InputStream
and written via an OutputStream
.
Definition at line 37 of file PalmDocument.java.
|
inline |
Constructor to create a PalmDocument
from an InputStream
.
is | InputStream containing a PDB. |
IOException | If any I/O error occurs. |
Definition at line 53 of file PalmDocument.java.
References org.openoffice.xmerge.converter.palm.PalmDocument.read().
|
inline |
Constructor to create a PalmDocument
with Record
objects.
recs.length
can be zero for an empty PDB.
name | Suggested PDB name in String . |
creatorID | The PDB Creator ID. |
typeID | The PDB Type ID. |
version | The PDB header version. |
attribute | The PDB header attribute. |
recs | Array of Record objects. |
NullPointerException | If recs is null . |
Definition at line 71 of file PalmDocument.java.
References attribute, org.openoffice.xmerge.converter.palm.PalmDocument.fileName, org.openoffice.xmerge.converter.palm.PalmDB.getPDBNameString(), name, org.openoffice.xmerge.converter.palm.PalmDocument.pdb, and typeID.
|
inline |
Returns the name of the file.
PalmDocument
. Implements org.openoffice.xmerge.Document.
Definition at line 136 of file PalmDocument.java.
References org.openoffice.xmerge.converter.palm.PalmDocument.fileName, and String.
|
inline |
Returns the Document
name.
Document
name. Implements org.openoffice.xmerge.Document.
Definition at line 145 of file PalmDocument.java.
References org.openoffice.xmerge.converter.palm.PalmDocument.fileName, and String.
|
inline |
Returns the PalmDB
contained in this object.
PalmDB
. Definition at line 115 of file PalmDocument.java.
References org.openoffice.xmerge.converter.palm.PalmDocument.pdb.
|
inline |
Reads in a file from the InputStream
.
is | InputStream to read in its content. |
IOException | If any I/O error occurs. |
Implements org.openoffice.xmerge.Document.
Definition at line 85 of file PalmDocument.java.
References org.openoffice.xmerge.converter.palm.PalmDocument.fileName, org.openoffice.xmerge.converter.palm.PalmDB.getPDBNameString(), n, org.openoffice.xmerge.converter.palm.PdbDecoder.parse(), and org.openoffice.xmerge.converter.palm.PalmDocument.pdb.
Referenced by org.openoffice.xmerge.converter.palm.PalmDocument.PalmDocument().
|
inline |
Sets the PalmDocument
to a new PalmDB
value.
pdb | The new PalmDB value. |
Definition at line 124 of file PalmDocument.java.
References org.openoffice.xmerge.converter.palm.PalmDocument.fileName, org.openoffice.xmerge.converter.palm.PalmDB.getPDBNameString(), name, org.openoffice.xmerge.converter.palm.PalmDocument.pdb, and String.
|
inline |
Writes the PalmDocument
to an OutputStream
.
os | The OutputStream to write the content. |
IOException | If any I/O error occurs. |
Implements org.openoffice.xmerge.Document.
Definition at line 105 of file PalmDocument.java.
References org.openoffice.xmerge.converter.palm.PalmDocument.pdb, and org.openoffice.xmerge.converter.palm.PdbEncoder.write().
|
private |
The file name.
Definition at line 44 of file PalmDocument.java.
Referenced by org.openoffice.xmerge.converter.palm.PalmDocument.getFileName(), org.openoffice.xmerge.converter.palm.PalmDocument.getName(), org.openoffice.xmerge.converter.palm.PalmDocument.PalmDocument(), org.openoffice.xmerge.converter.palm.PalmDocument.read(), and org.openoffice.xmerge.converter.palm.PalmDocument.setPdb().
|
private |
The internal representation of a pdb.
Definition at line 41 of file PalmDocument.java.
Referenced by org.openoffice.xmerge.converter.palm.PalmDocument.getPdb(), org.openoffice.xmerge.converter.palm.PalmDocument.PalmDocument(), org.openoffice.xmerge.converter.palm.PalmDocument.read(), org.openoffice.xmerge.converter.palm.PalmDocument.setPdb(), and org.openoffice.xmerge.converter.palm.PalmDocument.write().