@Test public void newDocumentBuilderIsNotFormatting() { Writer out = new StringWriter(); DocumentBuilder builder = new HtmlLanguage().createDocumentBuilder(out, false); builder.beginDocument(); builder.beginBlock(BlockType.PARAGRAPH, new Attributes()); builder.characters("test"); builder.endBlock(); builder.endDocument(); assertEquals(loadResourceContent("newDocumentBuilderIsNotFormatting.xml"), out.toString()); }
@Override public DocumentBuilder createDocumentBuilder(Writer out, boolean formatting) { return new HtmlDocumentBuilder(out, formatting); }
HtmlLanguage extends MarkupLanguage { @Override public DocumentBuilder createDocumentBuilder(Writer out, boolean formatting) { return new HtmlDocumentBuilder(out, formatting); } }
HtmlLanguage extends MarkupLanguage { @Override public DocumentBuilder createDocumentBuilder(Writer out, boolean formatting) { return new HtmlDocumentBuilder(out, formatting); } HtmlLanguage(); }
HtmlLanguage extends MarkupLanguage { @Override public DocumentBuilder createDocumentBuilder(Writer out, boolean formatting) { return new HtmlDocumentBuilder(out, formatting); } HtmlLanguage(); boolean isParseCleansHtml(); void setParseCleansHtml(boolean parseCleansHtml); @Override void processContent(MarkupParser parser, String markupContent, boolean asDocument); @Override DocumentBuilder createDocumentBuilder(Writer out, boolean formatting); static HtmlLanguageBuilder builder(); @Override HtmlLanguage clone(); }
HtmlLanguage extends MarkupLanguage { @Override public DocumentBuilder createDocumentBuilder(Writer out, boolean formatting) { return new HtmlDocumentBuilder(out, formatting); } HtmlLanguage(); boolean isParseCleansHtml(); void setParseCleansHtml(boolean parseCleansHtml); @Override void processContent(MarkupParser parser, String markupContent, boolean asDocument); @Override DocumentBuilder createDocumentBuilder(Writer out, boolean formatting); static HtmlLanguageBuilder builder(); @Override HtmlLanguage clone();  }