Top Description Constructors Methods
com.thoughtworks.xstream.io.xml

public abstract Class AbstractXmlWriter

extends AbstractWriter
implements XmlFriendlyWriter
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.io.xml.XmlFriendlyWriter
Known Direct Subclasses
com.thoughtworks.xstream.io.xml.Dom4JXmlWriter, com.thoughtworks.xstream.io.xml.PrettyPrintWriter, com.thoughtworks.xstream.io.xml.SaxWriter, com.thoughtworks.xstream.io.xml.StaxWriter, com.thoughtworks.xstream.io.xml.AbstractDocumentWriter
Imports
com.thoughtworks.xstream.io.AbstractWriter, com.thoughtworks.xstream.io.naming.NameCoder

Deprecated

As of 1.4 use AbstractWriter instead

Abstract base implementation of HierarchicalStreamWriter that provides common functionality to all XML-based writers.
Authors
Mauro Talevi, Jörg Schaible
Since
1.2

Constructor Summary

AccessConstructor and Description
protected
protected
AbstractXmlWriter(XmlFriendlyReplacer replacer)

Deprecated As of 1.4
protected

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

An escaped name with original characters replaced
escapeXmlName
(String
the unescaped XML name
name
)

Implements com.thoughtworks.xstream.io.xml.XmlFriendlyWriter.escapeXmlName.

Deprecated As of 1.4 use encodeNode(String) or encodeAttribute(String) instead
Escapes XML name (node or attribute) to be XML-friendly
Inherited from com.thoughtworks.xstream.io.AbstractWriter:
encodeAttributeencodeNodestartNodeunderlyingWriter

Constructor Detail

AbstractXmlWriterback to summary
protected AbstractXmlWriter()
AbstractXmlWriterback to summary
protected AbstractXmlWriter(XmlFriendlyReplacer replacer)

Deprecated

As of 1.4

AbstractXmlWriterback to summary
protected AbstractXmlWriter(NameCoder nameCoder)

Method Detail

escapeXmlNameback to summary
public String escapeXmlName(String name)

Implements com.thoughtworks.xstream.io.xml.XmlFriendlyWriter.escapeXmlName.

Deprecated

As of 1.4 use encodeNode(String) or encodeAttribute(String) instead

Escapes XML name (node or attribute) to be XML-friendly

Parameters
name:String

the unescaped XML name

Returns:String

An escaped name with original characters replaced