org.htmlcleaner
Class CompactHtmlSerializer

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

public class CompactHtmlSerializer
extends HtmlSerializer

Compact HTML serializer - creates resulting HTML by stripping whitespaces wherever possible.


Field Summary
 
Fields inherited from class org.htmlcleaner.Serializer
props
 
Constructor Summary
CompactHtmlSerializer(CleanerProperties props)
           
 
Method Summary
protected  void serialize(TagNode tagNode, Writer writer)
           
 
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

CompactHtmlSerializer

public CompactHtmlSerializer(CleanerProperties props)
Method Detail

serialize

protected void serialize(TagNode tagNode,
                         Writer writer)
                  throws IOException
Specified by:
serialize in class Serializer
Throws:
IOException


Copyright © 2006-2014. All Rights Reserved.