info.bliki.htmlcleaner
Class XmlSerializer
java.lang.Object
info.bliki.htmlcleaner.XmlSerializer
- Direct Known Subclasses:
- CompactXmlSerializer, PrettyXmlSerializer, SimpleXmlSerializer
public abstract class XmlSerializer
- extends java.lang.Object
Abstract XML serializer - contains common logic for descendants.
Created by: Vladimir Nikic
Date: November, 2006.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_DECLARATION
protected final java.lang.String XML_DECLARATION
- See Also:
- Constant Field Values
htmlCleaner
protected HtmlCleaner htmlCleaner
writer
protected java.io.BufferedWriter writer
XmlSerializer
protected XmlSerializer()
XmlSerializer
protected XmlSerializer(java.io.Writer writer,
HtmlCleaner htmlCleaner)
createXml
protected void createXml(TagNode tagNode)
throws java.io.IOException
- Throws:
java.io.IOException
escapeXml
protected java.lang.String escapeXml(java.lang.String xmlContent)
dontEscape
protected boolean dontEscape(TagNode tagNode)
isScriptOrStyle
protected boolean isScriptOrStyle(TagNode tagNode)
serializeOpenTag
protected void serializeOpenTag(TagNode tagNode,
boolean newLine)
throws java.io.IOException
- Throws:
java.io.IOException
serializeOpenTag
protected void serializeOpenTag(TagNode tagNode)
throws java.io.IOException
- Throws:
java.io.IOException
serializeEndTag
protected void serializeEndTag(TagNode tagNode,
boolean newLine)
throws java.io.IOException
- Throws:
java.io.IOException
serializeEndTag
protected void serializeEndTag(TagNode tagNode)
throws java.io.IOException
- Throws:
java.io.IOException
serialize
protected abstract void serialize(TagNode tagNode)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.