|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.converter.palm.PalmDocument
A PalmDocument
is palm implementaion of the
Docuemnt
interface.
This implementation allows the Palm device format to be
read via an InputStream
and written via an
OutputStream
.
Constructor Summary | |
PalmDocument(java.io.InputStream is)
Constructor to create a PalmDocument
from an InputStream . |
|
PalmDocument(java.lang.String name,
int creatorID,
int typeID,
int version,
short attribute,
Record[] recs)
Constructor to create a PalmDocument with
Record objects. |
Method Summary | |
java.lang.String |
getFileName()
Returns the name of the file. |
java.lang.String |
getName()
Returns the Document name. |
PalmDB |
getPdb()
Returns the PalmDB contained in this object. |
void |
read(java.io.InputStream is)
Reads in a file from the InputStream . |
void |
setPdb(PalmDB pdb)
Sets the PalmDocument to a new PalmDB
value. |
void |
write(java.io.OutputStream os)
Writes the PalmDocument to an OutputStream . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PalmDocument(java.io.InputStream is) throws java.io.IOException
PalmDocument
from an InputStream
.is
- InputStream
containing a PDB.java.io.IOException
- If any I/O error occurs.public PalmDocument(java.lang.String name, int creatorID, int typeID, int version, short attribute, Record[] recs) throws java.io.UnsupportedEncodingException
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.Method Detail |
public java.lang.String getFileName()
getFileName
in interface Document
PalmDocument
.public java.lang.String getName()
Document
name.getName
in interface Document
Document
name.public PalmDB getPdb()
PalmDB
contained in this object.PalmDB
.public void read(java.io.InputStream is) throws java.io.IOException
InputStream
.read
in interface Document
is
- InputStream
to read in its content.java.io.IOException
- If any I/O error occurs.public void setPdb(PalmDB pdb)
PalmDocument
to a new PalmDB
value.pdb
- The new PalmDB
value.public void write(java.io.OutputStream os) throws java.io.IOException
PalmDocument
to an OutputStream
.write
in interface Document
is
- The OutputStream
to write the content.java.io.IOException
- If any I/O error occurs.
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |