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

A. More...

Inheritance diagram for org.openoffice.xmerge.converter.palm.PalmDocument:
[legend]
Collaboration diagram for org.openoffice.xmerge.converter.palm.PalmDocument:
[legend]

Public Member Functions

 PalmDocument (InputStream is) throws IOException
 Constructor to create a. More...
 
 PalmDocument (String name, int creatorID, int typeID, int version, short attribute, Record[] recs) throws UnsupportedEncodingException
 Constructor to create a. More...
 
void read (InputStream is) throws IOException
 Reads in a file from the. More...
 
void write (OutputStream os) throws IOException
 Writes the. More...
 
PalmDB getPdb ()
 Returns the. More...
 
void setPdb (PalmDB pdb)
 Sets the. More...
 
String getFileName ()
 Returns the name of the file. More...
 
String getName ()
 Returns the. More...
 

Private Attributes

PalmDB pdb
 The internal representation of a pdb. More...
 
String fileName
 The file name. More...
 

Detailed Description

A.

is palm implementation of the

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.

Constructor & Destructor Documentation

org.openoffice.xmerge.converter.palm.PalmDocument.PalmDocument ( InputStream  is) throws IOException
inline

Constructor to create a.

from an

InputStream

.

Parameters
is

Definition at line 53 of file PalmDocument.java.

References org.openoffice.xmerge.converter.palm.PalmDocument.read().

org.openoffice.xmerge.converter.palm.PalmDocument.PalmDocument ( String  name,
int  creatorID,
int  typeID,
int  version,
short  attribute,
Record[]  recs 
) throws UnsupportedEncodingException
inline

Constructor to create a.

with

objects.

recs.length

can be zero for an empty PDB.

Parameters
nameSuggested PDB name in .
creatorIDThe PDB Creator ID.
typeIDThe PDB Type ID.
versionThe PDB header version.
attributeThe PDB header attribute.
recsArray of objects.
Exceptions
NullPointerExceptionIf
recs
is
null
.

Definition at line 71 of file PalmDocument.java.

References attribute, org.openoffice.xmerge.converter.palm.PalmDB.getPDBNameString(), name, and typeID().

Member Function Documentation

String org.openoffice.xmerge.converter.palm.PalmDocument.getFileName ( )
inline

Returns the name of the file.

Returns
The name of the file represented in the .

Implements org.openoffice.xmerge.Document.

Definition at line 136 of file PalmDocument.java.

References String.

String org.openoffice.xmerge.converter.palm.PalmDocument.getName ( )
inline

Returns the.

name.

Returns
The name.

Implements org.openoffice.xmerge.Document.

Definition at line 145 of file PalmDocument.java.

References org.openoffice.xmerge.converter.palm.PalmDocument.fileName, and String.

PalmDB org.openoffice.xmerge.converter.palm.PalmDocument.getPdb ( )
inline

Returns the.

PalmDB

contained in this object.

Returns
The
PalmDB
.

Definition at line 115 of file PalmDocument.java.

References org.openoffice.xmerge.converter.palm.PalmDocument.pdb.

void org.openoffice.xmerge.converter.palm.PalmDocument.read ( InputStream  is) throws IOException
inline
void org.openoffice.xmerge.converter.palm.PalmDocument.setPdb ( PalmDB  pdb)
inline

Sets the.

to a new

PalmDB

value.

Parameters
pdbThe new
PalmDB
value.

Definition at line 124 of file PalmDocument.java.

References org.openoffice.xmerge.converter.palm.PalmDB.getPDBNameString(), name, org.openoffice.xmerge.converter.palm.PalmDocument.pdb, and String.

void org.openoffice.xmerge.converter.palm.PalmDocument.write ( OutputStream  os) throws IOException
inline

Writes the.

to an

OutputStream

.

Parameters
osThe
OutputStream
to write the content.
Exceptions
IOExceptionIf any I/O error occurs.

Implements org.openoffice.xmerge.Document.

Definition at line 105 of file PalmDocument.java.

References org.openoffice.xmerge.converter.palm.PdbEncoder.write().

Member Data Documentation

String org.openoffice.xmerge.converter.palm.PalmDocument.fileName
private

The file name.

Definition at line 44 of file PalmDocument.java.

Referenced by org.openoffice.xmerge.converter.palm.PalmDocument.getName().

PalmDB org.openoffice.xmerge.converter.palm.PalmDocument.pdb
private

The internal representation of a pdb.

Definition at line 41 of file PalmDocument.java.

Referenced by org.openoffice.xmerge.converter.palm.PalmDocument.getPdb(), and org.openoffice.xmerge.converter.palm.PalmDocument.setPdb().


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