Package org.eclipse.mylyn.wikitext.core.parser.builder

Examples of org.eclipse.mylyn.wikitext.core.parser.builder.DocBookDocumentBuilder


        throw new BuildException(MessageFormat.format(
            Messages.getString("MarkupToDocbookTask.11"), docbookOutputFile, //$NON-NLS-1$
            e.getMessage()), e);
      }
      try {
        DocBookDocumentBuilder builder = new DocBookDocumentBuilder(writer) {
          @Override
          protected XmlStreamWriter createXmlStreamWriter(Writer out) {
            return super.createFormattingXmlStreamWriter(out);
          }
        };
        MarkupParser parser = new MarkupParser();
        parser.setMarkupLanguage(markupLanguage);
        parser.setBuilder(builder);
        builder.setBookTitle(bookTitle == null ? name : bookTitle);
        if (doctype != null) {
          builder.setDoctype(doctype);
        }
        parser.parse(markupContent);
      } finally {
        try {
          writer.close();
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.wikitext.core.parser.builder.DocBookDocumentBuilder

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.