Examples of PalmDocument


Examples of org.openoffice.xmerge.converter.palm.PalmDocument

        // 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;
    }
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

     @return  A Device Document object
     */ 
    public Document createDeviceDocument(String name, InputStream is)
    throws IOException {

        PalmDocument palmDoc = new PalmDocument(is);
        return palmDoc;
    }
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

    public Document deserialize(Document origDoc, ConvertData cd)
    throws IOException {

        Document doc         = null;
        PalmDocument palmDoc = null;
        Enumeration e        = cd.getDocumentEnumeration();

        while(e.hasMoreElements()) {
            palmDoc        = (PalmDocument) e.nextElement();
            PalmDB pdb     = palmDoc.getPdb();
            Record[] recs  = pdb.getRecords();
            decoder        = new WSDecoder();
            Wse[] b        = decoder.parseDocument(recs);
            String docName = palmDoc.getName();
            doc            = buildDocument(docName, b, origDoc);
        }
        return doc;
    }
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

     @throws  IOException  If any I/O error occurs.
     */
    public void addDeviceContent(ConvertData cd) throws IOException {

        try {
      PalmDocument palmDoc;
      int j = 0;

    Enumeration e = cd.getDocumentEnumeration();
    while(e.hasMoreElements()) {
     
        palmDoc = (PalmDocument) e.nextElement();
              // Convert PDB to WorkBook/WorkSheet format
        PalmDB pdb = palmDoc.getPdb();

              // This will be done at least once
              String sheetName = worksheetNames[j];
     
              // Get number of records in the pdb
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

            String fullSheetName = new String(docName
                                              + "-"
                                              + encoder.getSheetName(i));

            // Create a PalmDB object
            PalmDocument palmDoc = new PalmDocument(fullSheetName,
                 MinicalcConstants.CREATOR_ID,
                 MinicalcConstants.TYPE_ID, JMCconstants.AppVersion,
                 PalmDB.PDB_HEADER_ATTR_BACKUP, records);

            cd.addDocument(palmDoc);
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument


    public Document createDeviceDocument(String name, InputStream is)
    throws IOException {

        PalmDocument palmDoc = new PalmDocument(is);
        return palmDoc;
    }
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

     */
    protected String getWorkbookName(ConvertData cd)
        throws IOException {

        Enumeration e        = cd.getDocumentEnumeration();
        PalmDocument palmDoc = (PalmDocument) e.nextElement();
        String workbookName  = palmDoc.getName();

        // Search for "-", which separates workbook from worksheet
        int end = workbookName.indexOf("-");

        if (end > 0) {
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

        int numberOfPDBs = cd.getNumDocuments();
        String worksheetName[] = new String[numberOfPDBs];
        int i=0;
        Enumeration e = cd.getDocumentEnumeration();
        while (e.hasMoreElements()) {
                PalmDocument palmDoc = (PalmDocument) e.nextElement();
                worksheetName[i] = palmDoc.getName();
               
                // Search for the "-", which seperates workbook from worksheet
                int start = worksheetName[i].indexOf("-");
               
                if (start != -1) {
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

        // create a ConvertData object.
        //
        Record records[] = encoder.getRecords();
        ConvertData cd = new ConvertData();
       
        PalmDocument palmDoc = new PalmDocument(docName,
            DocConstants.CREATOR_ID, DocConstants.TYPE_ID,
            0, PalmDB.PDB_HEADER_ATTR_BACKUP, records);

        cd.addDocument(palmDoc);
        return cd;
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.PalmDocument

    }

    public Document createDeviceDocument(String name, InputStream is)
    throws IOException {

        PalmDocument palmDoc = new PalmDocument(is);
        return palmDoc;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.