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
,PrettyPrintWriter
,SaxWriter
,StaxWriter
public abstract class AbstractXmlWriter extends AbstractWriter implements XmlFriendlyWriter
Deprecated.As of 1.4 useAbstractWriter
insteadAbstract base implementation of HierarchicalStreamWriter that provides common functionality to all XML-based writers.- Since:
- 1.2
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractXmlWriter()
Deprecated.protected
AbstractXmlWriter(NameCoder nameCoder)
Deprecated.protected
AbstractXmlWriter(XmlFriendlyReplacer replacer)
Deprecated.As of 1.4
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
escapeXmlName(java.lang.String name)
Deprecated.As of 1.4 useAbstractWriter.encodeNode(String)
orAbstractWriter.encodeAttribute(String)
instead-
Methods 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 Detail
-
AbstractXmlWriter
protected AbstractXmlWriter()
Deprecated.
-
AbstractXmlWriter
protected AbstractXmlWriter(XmlFriendlyReplacer replacer)
Deprecated.As of 1.4
-
AbstractXmlWriter
protected AbstractXmlWriter(NameCoder nameCoder)
Deprecated.
-
-
Method Detail
-
escapeXmlName
public java.lang.String escapeXmlName(java.lang.String name)
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
-
-