org.htmlcleaner
Class PrettyXmlSerializer

java.lang.Object
  extended by org.htmlcleaner.Serializer
      extended by org.htmlcleaner.XmlSerializer
          extended by org.htmlcleaner.PrettyXmlSerializer

public class PrettyXmlSerializer
extends XmlSerializer

Pretty XML serializer - creates resulting XML with indenting lines.


Field Summary
 
Fields inherited from class org.htmlcleaner.XmlSerializer
XMLNS_NAMESPACE
 
Fields inherited from class org.htmlcleaner.Serializer
props
 
Constructor Summary
PrettyXmlSerializer(CleanerProperties props)
           
PrettyXmlSerializer(CleanerProperties props, String indentString)
           
 
Method Summary
protected  void serialize(TagNode tagNode, Writer writer)
           
protected  void serializePrettyXml(TagNode tagNode, Writer writer, int level)
           
 
Methods inherited from class org.htmlcleaner.XmlSerializer
dontEscape, escapeXml, getXmlAsString, getXmlAsString, isCreatingHtmlDom, isForbiddenAttribute, isForbiddenTag, isHeadOrBody, isMinimizedTagSyntax, serializeAttribute, serializeCData, serializeContentToken, serializeEndTag, serializeEndTag, serializeOpenTag, serializeOpenTag, setCreatingHtmlDom, writeXml, writeXmlToFile, writeXmlToFile, writeXmlToStream, writeXmlToStream
 
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

PrettyXmlSerializer

public PrettyXmlSerializer(CleanerProperties props)

PrettyXmlSerializer

public PrettyXmlSerializer(CleanerProperties props,
                           String indentString)
Method Detail

serialize

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

serializePrettyXml

protected void serializePrettyXml(TagNode tagNode,
                                  Writer writer,
                                  int level)
                           throws IOException
Throws:
IOException


Copyright © 2006-2014. All Rights Reserved.