A PalmDocument is palm implementaion of the Docuemnt interface.
PalmDocument
Docuemnt
This implementation allows the Palm device format to be read via an InputStream and written via an OutputStream.
InputStream
OutputStream
165166167168169170171172173174175
// create a PalmDB object and ConvertData object. // Record records[] = encoder.getRecords(); ConvertData cd = new ConvertData(); PalmDocument palmDoc = new PalmDocument(docName, PdbUtil.intID("WrdS"), PdbUtil.intID("BDOC"), 0, PalmDB.PDB_HEADER_ATTR_BACKUP, records); cd.addDocument(palmDoc); return cd; }