Package org.htmlcleaner
Class CompactXmlSerializer
java.lang.Object
org.htmlcleaner.Serializer
org.htmlcleaner.XmlSerializer
org.htmlcleaner.CompactXmlSerializer
Compact XML serializer - creates resulting XML by stripping whitespaces.
-
Field Summary
Fields inherited from class org.htmlcleaner.XmlSerializer
XMLNS_NAMESPACE
Fields inherited from class org.htmlcleaner.Serializer
props
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isWhitespaceString
(Object object) Checks whether specified object's string representation is empty string (containing of only whitespaces).protected void
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
-
Constructor Details
-
CompactXmlSerializer
-
-
Method Details
-
serialize
- Specified by:
serialize
in classSerializer
- Throws:
IOException
-
isWhitespaceString
Checks whether specified object's string representation is empty string (containing of only whitespaces).- Parameters:
object
- Object whose string representation is checked- Returns:
- true, if empty string, false otherwise
-