Package net.java.textilej.parser

Examples of net.java.textilej.parser.MarkupParser


        return super.createFormattingXmlStreamWriter(out);
      }
    };
    builder.setBookTitle(bookTitle);

    MarkupParser textileParser = new MarkupParser();
   
    textileParser.setBuilder(builder);
    textileParser.setDialect(dialect);
   
    textileParser.parse(markupContent);
   
    return out.toString();
  }
View Full Code Here


            builder.addCssStylesheet(stylesheet.file);
          }
        }
       
        builder.setTitle(title==null?name:title);
        MarkupParser parser = new MarkupParser();
        parser.setDialect(new TextileDialect());
        parser.setBuilder(builder);
        builder.setEmitDtd(true);
       
        parser.parse(textile);
      } finally {
        try {
          writer.close();
        } catch (Exception e) {
          throw new BuildException(String.format("Cannot write to file '%s': %s",htmlOutputFile,e.getMessage()),e);
View Full Code Here

          @Override
          protected XmlStreamWriter createXmlStreamWriter(Writer out) {
            return super.createFormattingXmlStreamWriter(out);
          }
        };
        MarkupParser parser = new MarkupParser();
        parser.setDialect(new TextileDialect());
        parser.setBuilder(builder);
        builder.setBookTitle(bookTitle==null?name:bookTitle);
        if (doctype != null) {
          builder.setDoctype(doctype);
        }
        parser.parse(textile);
      } finally {
        try {
          writer.close();
        } catch (Exception e) {
          throw new BuildException(String.format("Cannot write to file '%s': %s",docbookOutputFile,e.getMessage()),e);
View Full Code Here

    dialect.setFilterGenerativeContents(true);
    dialect.setBlocksOnly(true);
   
    OutlineBuilder outlineBuilder = new OutlineBuilder(root,labelMaxLength);
    MarkupParser markupParser = new MarkupParser();
    markupParser.setBuilder(outlineBuilder);
    markupParser.setDialect(dialect);
    markupParser.parse(markup);
   
    return root;
  }
View Full Code Here

  private static class ThreadLocalConfluenceProcessor extends ThreadLocal<MarkupParser> {

    @Override
    protected MarkupParser initialValue() {

      return new MarkupParser(new ConfluenceDialect());

    }
View Full Code Here

  private static class ThreadLocalMediaWikiProcessor extends ThreadLocal<MarkupParser> {

    @Override
    protected MarkupParser initialValue() {

      return new MarkupParser(new MediaWikiDialect());

    }
View Full Code Here

  private static class ThreadLocalTextileProcessor extends ThreadLocal<MarkupParser> {

    @Override
    protected MarkupParser initialValue() {

      return new MarkupParser(new TextileDialect());

    }
View Full Code Here

  private static class ThreadLocalTracWikiProcessor extends ThreadLocal<MarkupParser> {

    @Override
    protected MarkupParser initialValue() {

      return new MarkupParser(new TracWikiDialect());

    }
View Full Code Here

TOP

Related Classes of net.java.textilej.parser.MarkupParser

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.