org.htmlcleaner
Class HtmlSerializer

java.lang.Object
  extended by org.htmlcleaner.Serializer
      extended by org.htmlcleaner.HtmlSerializer
Direct Known Subclasses:
CompactHtmlSerializer, PrettyHtmlSerializer, SimpleHtmlSerializer

public abstract class HtmlSerializer
extends Serializer

Abstract HTML serializer - contains common logic for descendants.


Field Summary
 
Fields inherited from class org.htmlcleaner.Serializer
props
 
Constructor Summary
protected HtmlSerializer(CleanerProperties props)
           
 
Method Summary
protected  boolean dontEscape(TagNode tagNode)
           
protected  String escapeText(String content)
           
protected  boolean isMinimizedTagSyntax(TagNode tagNode)
           
protected  void serializeEndTag(TagNode tagNode, Writer writer, boolean newLine)
           
protected  void serializeOpenTag(TagNode tagNode, Writer writer, boolean newLine)
           
 
Methods inherited from class org.htmlcleaner.Serializer
getAsString, getAsString, getAsString, getAsString, getAsString, isScriptOrStyle, serialize, 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

HtmlSerializer

protected HtmlSerializer(CleanerProperties props)
Method Detail

isMinimizedTagSyntax

protected boolean isMinimizedTagSyntax(TagNode tagNode)

dontEscape

protected boolean dontEscape(TagNode tagNode)

escapeText

protected String escapeText(String content)

serializeOpenTag

protected void serializeOpenTag(TagNode tagNode,
                                Writer writer,
                                boolean newLine)
                         throws IOException
Throws:
IOException

serializeEndTag

protected void serializeEndTag(TagNode tagNode,
                               Writer writer,
                               boolean newLine)
                        throws IOException
Throws:
IOException


Copyright © 2006-2014. All Rights Reserved.