org.htmlcleaner
Class PrettyHtmlSerializer

java.lang.Object
  extended by org.htmlcleaner.Serializer
      extended by org.htmlcleaner.HtmlSerializer
          extended by org.htmlcleaner.PrettyHtmlSerializer

public class PrettyHtmlSerializer
extends HtmlSerializer

Pretty HTML serializer - creates resulting HTML with indenting lines.


Field Summary
 
Fields inherited from class org.htmlcleaner.Serializer
props
 
Constructor Summary
PrettyHtmlSerializer(CleanerProperties props)
           
PrettyHtmlSerializer(CleanerProperties props, String indentString)
           
 
Method Summary
protected  void serialize(TagNode tagNode, Writer writer)
           
protected  void serializePrettyHtml(TagNode tagNode, Writer writer, int level, boolean isPreserveWhitespaces, boolean isLastNewLine)
           
 
Methods inherited from class org.htmlcleaner.HtmlSerializer
dontEscape, escapeText, isMinimizedTagSyntax, serializeEndTag, serializeOpenTag
 
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
 

Constructor Detail

PrettyHtmlSerializer

public PrettyHtmlSerializer(CleanerProperties props)

PrettyHtmlSerializer

public PrettyHtmlSerializer(CleanerProperties props,
                            String indentString)
Method Detail

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.