public abstract class XmlSerializer extends Serializer
Abstract XML serializer - contains common logic for descendants.
props| Modifier | Constructor and Description |
|---|---|
protected |
XmlSerializer(CleanerProperties props) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
dontEscape(TagNode tagNode) |
protected String |
escapeXml(String xmlContent) |
String |
getXmlAsString(TagNode tagNode)
Deprecated.
Use getAsString() instead.
|
String |
getXmlAsString(TagNode tagNode,
String charset)
Deprecated.
Use getAsString() instead.
|
protected boolean |
isMinimizedTagSyntax(TagNode tagNode) |
protected void |
serializeEndTag(TagNode tagNode,
Writer writer,
boolean newLine) |
protected void |
serializeOpenTag(TagNode tagNode,
Writer writer,
boolean newLine) |
void |
writeXml(TagNode tagNode,
Writer writer,
String charset)
Deprecated.
Use write() instead.
|
void |
writeXmlToFile(TagNode tagNode,
String fileName)
Deprecated.
Use writeToFile() instead.
|
void |
writeXmlToFile(TagNode tagNode,
String fileName,
String charset)
Deprecated.
Use writeToFile() instead.
|
void |
writeXmlToStream(TagNode tagNode,
OutputStream out)
Deprecated.
Use writeToStream() instead.
|
void |
writeXmlToStream(TagNode tagNode,
OutputStream out,
String charset)
Deprecated.
Use writeToStream() instead.
|
getAsString, getAsString, getAsString, getAsString, isScriptOrStyle, serialize, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStreamprotected XmlSerializer(CleanerProperties props)
@Deprecated public void writeXmlToStream(TagNode tagNode, OutputStream out, String charset) throws IOException
IOException@Deprecated public void writeXmlToStream(TagNode tagNode, OutputStream out) throws IOException
IOException@Deprecated public void writeXmlToFile(TagNode tagNode, String fileName, String charset) throws IOException
IOException@Deprecated public void writeXmlToFile(TagNode tagNode, String fileName) throws IOException
IOException@Deprecated public String getXmlAsString(TagNode tagNode, String charset) throws IOException
IOException@Deprecated public String getXmlAsString(TagNode tagNode) throws IOException
IOException@Deprecated public void writeXml(TagNode tagNode, Writer writer, String charset) throws IOException
IOExceptionprotected boolean dontEscape(TagNode tagNode)
protected boolean isMinimizedTagSyntax(TagNode tagNode)
protected void serializeOpenTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
IOExceptionprotected void serializeEndTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
IOExceptionCopyright © 2006–2017. All rights reserved.