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

public abstract Class AbstractXmlReader

extends AbstractReader
Class Inheritance
Known Direct Subclasses
com.thoughtworks.xstream.io.xml.AbstractDocumentReader, com.thoughtworks.xstream.io.xml.AbstractPullReader
Imports
com.thoughtworks.xstream.io.AbstractReader, com.thoughtworks.xstream.io.naming.NameCoder

Deprecated

As of 1.4, use AbstractReader instead.

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

Constructor Summary

AccessConstructor and Description
protected
protected
AbstractXmlReader(XmlFriendlyReplacer replacer)

Deprecated As of 1.4, use AbstractReader instead.
protected

Method Summary

Modifier and TypeMethod and Description
protected String

Returns:

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

Deprecated As of 1.4, use AbstractReader instead.
Escapes XML-unfriendly name (node or attribute)
public String

Returns:

An unescaped name with original characters
unescapeXmlName
(String
the escaped XML-friendly name
name
)

Deprecated As of 1.4, use decodeNode(String) or decodeAttribute(String) instead.
Unescapes XML-friendly name (node or attribute)
Inherited from com.thoughtworks.xstream.io.AbstractReader:
decodeAttributedecodeNodeencodeAttributeencodeNodepeekNextChildunderlyingReader

Constructor Detail

AbstractXmlReaderback to summary
protected AbstractXmlReader()
AbstractXmlReaderback to summary
protected AbstractXmlReader(XmlFriendlyReplacer replacer)

Deprecated

As of 1.4, use AbstractReader instead.

AbstractXmlReaderback to summary
protected AbstractXmlReader(NameCoder nameCoder)

Method Detail

escapeXmlNameback to summary
protected String escapeXmlName(String name)

Deprecated

As of 1.4, use AbstractReader instead.

Escapes XML-unfriendly name (node or attribute)

Parameters
name:String

the unescaped XML-unfriendly name

Returns:String

An escaped name with original characters

unescapeXmlNameback to summary
public String unescapeXmlName(String name)

Deprecated

As of 1.4, use decodeNode(String) or decodeAttribute(String) instead.

Unescapes XML-friendly name (node or attribute)

Parameters
name:String

the escaped XML-friendly name

Returns:String

An unescaped name with original characters