org.htmlcleaner
Class HtmlSerializer
java.lang.Object
org.htmlcleaner.Serializer
org.htmlcleaner.HtmlSerializer
- Direct Known Subclasses:
- CompactHtmlSerializer, PrettyHtmlSerializer, SimpleHtmlSerializer
public abstract class HtmlSerializer
- extends Serializer
Abstract HTML serializer - contains common logic for descendants.
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 |
HtmlSerializer
protected HtmlSerializer(CleanerProperties props)
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.