org.htmlcleaner
Class PrettyHtmlSerializer
java.lang.Object
org.htmlcleaner.Serializer
org.htmlcleaner.HtmlSerializer
org.htmlcleaner.PrettyHtmlSerializer
public class PrettyHtmlSerializer
- extends HtmlSerializer
Pretty HTML serializer - creates resulting HTML with indenting lines.
Methods inherited from class org.htmlcleaner.Serializer |
getAsString, getAsString, getAsString, getAsString, getAsString, isScriptOrStyle, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrettyHtmlSerializer
public PrettyHtmlSerializer(CleanerProperties props)
PrettyHtmlSerializer
public PrettyHtmlSerializer(CleanerProperties props,
String indentString)
serialize
protected void serialize(TagNode tagNode,
Writer writer)
throws IOException
- Specified by:
serialize
in class Serializer
- Throws:
IOException
serializePrettyHtml
protected void serializePrettyHtml(TagNode tagNode,
Writer writer,
int level,
boolean isPreserveWhitespaces,
boolean isLastNewLine)
throws IOException
- Throws:
IOException
Copyright © 2006-2014. All Rights Reserved.