Package jreepad.io

Examples of jreepad.io.XmlWriter


            encoding = document.getEncoding();

          // Write to either HJT or XML
          JreepadWriter writer;
          if(fileType == JreepadPrefs.FILETYPE_XML)
            writer = new XmlWriter();
          else if (fileType == JreepadPrefs.FILETYPE_XML_ENCRYPTED)
          {
              String password = document.getPassword();
              if (password == null || askForFilename)
                  password = PasswordDialog.showPasswordDialog(true);
              if (password == null)
              {
                  successful = false; // "Cancel" was pressed
                  return;
              }
              EncryptedWriter encryptedWriter = new EncryptedWriter(new XmlWriter());
              encryptedWriter.setPassword(password);
              writer = encryptedWriter;
              document.setPassword(password);
          }
          else
View Full Code Here


        for(int i=0; i<res.length; i++)
          resultsParent.add(res[i].getNode());
        String outputEncoding = "ISO-8859-1"; // FIXME: What should the encoding be?
        JreepadWriter writer;
        if (outputFormat == OUTPUT_XML)
            writer= new XmlWriter();
        else
            writer= new TreepadWriter(outputEncoding);
        writer.write(System.out, new JreepadTreeModel(resultsParent));
        break;
      case OUTPUT_TITLES:
View Full Code Here

                getPrefs().htmlExportArticleType,
                getPrefs().htmlExportUrlsToLinks,
                getPrefs().htmlExportAnchorLinkType);
            break;
          case FILE_FORMAT_XML:
            writer= new XmlWriter();
            break;
          case FILE_FORMAT_HJT:
            writer= new TreepadWriter(getPrefs().getEncoding());
            break;
          case FILE_FORMAT_TEXT:
View Full Code Here

TOP

Related Classes of jreepad.io.XmlWriter

Copyright © 2018 www.massapicom. 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.