Examples of XmlCreator


Examples of entagged.listing.xml.XmlCreator

  /**
   * Creates an instance.
   * 
   */
  public XmlListingGenerator() {
    listingCreator = new XmlCreator();
  }
View Full Code Here

Examples of entagged.listing.xml.XmlCreator

      throw new IllegalArgumentException("Arguments must not be null.");
    }
    if ((targetType & REPORT_TSV) != 0) {
      this.lister = new SeparatedListingCreator();
    } else if ((targetType & REPORT_XML) != 0) {
      this.lister = new XmlCreator();
    } else if ((targetType & REPORT_OTHER) != 0) {
      this.lister = new XmlCreator();
      // NO writing.
      this.targetFile = null;
    } else {
      throw new IllegalArgumentException(
          "targettype has incorrect value.");
View Full Code Here

Examples of org.openqreg.reader.XmlCreator

          disp.checkAccess(loginAnswer.getUserId(), service) && xmlDocName != null) {
       
        InputStream is = null;
       
        try {
          XmlCreator creator;
          if (type == ImportType.VARIABLES) {
            creator = new XmlVariableCreator();
          } else if (type == ImportType.XLIFF) {
            String sourcelang = req.getParameter("sourcelang");
            String targetlang = req.getParameter("targetlang");
            creator = new XliffCreator(sourcelang, targetlang);
          } else {
            creator = new XmlTextCreator();
          }
          Document doc = creator.createFile(DbHandler.getConnection(),
              xmlDocName);
         
          //Write the xml/html document nicely
          OutputFormat format = OutputFormat.createPrettyPrint();
          format.setEncoding("UTF-8");
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.