Package com.thoughtworks.xstream.io.xml
Class AbstractXmlWriter
java.lang.Object
com.thoughtworks.xstream.io.AbstractWriter
com.thoughtworks.xstream.io.xml.AbstractXmlWriter
- All Implemented Interfaces:
ExtendedHierarchicalStreamWriter
,HierarchicalStreamWriter
,XmlFriendlyWriter
- Direct Known Subclasses:
AbstractDocumentWriter
,Dom4JXmlWriter
,PrettyPrintWriter
,SaxWriter
,StaxWriter
Deprecated.
Abstract base implementation of HierarchicalStreamWriter that provides common functionality
to all XML-based writers.
- Since:
- 1.2
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Deprecated.protected
AbstractXmlWriter
(NameCoder nameCoder) Deprecated.protected
AbstractXmlWriter
(XmlFriendlyReplacer replacer) Deprecated.As of 1.4 -
Method Summary
Modifier and TypeMethodDescriptionescapeXmlName
(String name) Deprecated.As of 1.4 useAbstractWriter.encodeNode(String)
orAbstractWriter.encodeAttribute(String)
insteadMethods inherited from class com.thoughtworks.xstream.io.AbstractWriter
encodeAttribute, encodeNode, startNode, underlyingWriter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
addAttribute, close, endNode, flush, setValue, startNode
-
Constructor Details
-
AbstractXmlWriter
protected AbstractXmlWriter()Deprecated. -
AbstractXmlWriter
Deprecated.As of 1.4 -
AbstractXmlWriter
Deprecated.
-
-
Method Details
-
escapeXmlName
Deprecated.As of 1.4 useAbstractWriter.encodeNode(String)
orAbstractWriter.encodeAttribute(String)
insteadEscapes XML name (node or attribute) to be XML-friendly- Specified by:
escapeXmlName
in interfaceXmlFriendlyWriter
- Parameters:
name
- the unescaped XML name- Returns:
- An escaped name with original characters replaced
-
AbstractWriter
instead