Package org.htmlcleaner
Class EpublibXmlSerializer
- java.lang.Object
-
- org.htmlcleaner.Serializer
-
- org.htmlcleaner.XmlSerializer
-
- org.htmlcleaner.SimpleXmlSerializer
-
- org.htmlcleaner.EpublibXmlSerializer
-
public class EpublibXmlSerializer extends org.htmlcleaner.SimpleXmlSerializer
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringoutputEncoding
-
Constructor Summary
Constructors Constructor Description EpublibXmlSerializer(org.htmlcleaner.CleanerProperties paramCleanerProperties, java.lang.String outputEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringescapeXml(java.lang.String xmlContent)private booleanisMetaContentTypeTag(org.htmlcleaner.TagNode tagNode)protected voidserializeOpenTag(org.htmlcleaner.TagNode tagNode, java.io.Writer writer, boolean newLine)Differs from the super.serializeOpenTag in that it: skips the xmlns:xml="xml" attribute if the tagNode is a meta tag setting the contentType then it sets the encoding to the actual encoding-
Methods inherited from class org.htmlcleaner.XmlSerializer
dontEscape, getXmlAsString, getXmlAsString, isCreatingHtmlDom, isForbiddenAttribute, isForbiddenTag, isHeadOrBody, isMinimizedTagSyntax, serializeAttribute, serializeCData, serializeContentToken, serializeEndTag, serializeEndTag, serializeOpenTag, setCreatingHtmlDom, writeXml, writeXmlToFile, writeXmlToFile, writeXmlToStream, writeXmlToStream
-
-
-
-
Method Detail
-
escapeXml
protected java.lang.String escapeXml(java.lang.String xmlContent)
- Overrides:
escapeXmlin classorg.htmlcleaner.XmlSerializer
-
serializeOpenTag
protected void serializeOpenTag(org.htmlcleaner.TagNode tagNode, java.io.Writer writer, boolean newLine) throws java.io.IOExceptionDiffers from the super.serializeOpenTag in that it:- skips the xmlns:xml="xml" attribute
- if the tagNode is a meta tag setting the contentType then it sets the encoding to the actual encoding
- Overrides:
serializeOpenTagin classorg.htmlcleaner.XmlSerializer- Throws:
java.io.IOException
-
isMetaContentTypeTag
private boolean isMetaContentTypeTag(org.htmlcleaner.TagNode tagNode)
-
-