public class PrettyHtmlSerializer extends HtmlSerializer
Pretty HTML serializer - creates resulting HTML with indenting lines.
props
Constructor and Description |
---|
PrettyHtmlSerializer(CleanerProperties props) |
PrettyHtmlSerializer(CleanerProperties props,
String indentString) |
Modifier and Type | Method and Description |
---|---|
protected void |
serialize(TagNode tagNode,
Writer writer) |
protected void |
serializePrettyHtml(TagNode tagNode,
Writer writer,
int level,
boolean isPreserveWhitespaces,
boolean isLastNewLine) |
dontEscape, escapeText, isMinimizedTagSyntax, serializeEndTag, serializeOpenTag
getAsString, getAsString, getAsString, getAsString, isScriptOrStyle, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStream
public PrettyHtmlSerializer(CleanerProperties props)
public PrettyHtmlSerializer(CleanerProperties props, String indentString)
protected void serialize(TagNode tagNode, Writer writer) throws IOException
serialize
in class Serializer
IOException
protected void serializePrettyHtml(TagNode tagNode, Writer writer, int level, boolean isPreserveWhitespaces, boolean isLastNewLine) throws IOException
IOException
Copyright © 2006–2017. All rights reserved.