com.thoughtworks.xstream.io.xml
Class AbstractXmlReader

java.lang.Object
  extended by com.thoughtworks.xstream.io.AbstractReader
      extended by com.thoughtworks.xstream.io.xml.AbstractXmlReader
All Implemented Interfaces:
ErrorReporter, ExtendedHierarchicalStreamReader, HierarchicalStreamReader
Direct Known Subclasses:
AbstractDocumentReader, AbstractPullReader

Deprecated. As of 1.4, use AbstractReader instead.

public abstract class AbstractXmlReader
extends AbstractReader

Abstract base implementation of HierarchicalStreamReader that provides common functionality to all XML-based readers.

Since:
1.2
Author:
Mauro Talevi, Jörg Schaible

Constructor Summary
protected AbstractXmlReader()
          Deprecated.  
protected AbstractXmlReader(NameCoder nameCoder)
          Deprecated.  
protected AbstractXmlReader(XmlFriendlyReplacer replacer)
          Deprecated. As of 1.4, use AbstractReader instead.
 
Method Summary
protected  String escapeXmlName(String name)
          Deprecated. As of 1.4, use AbstractReader instead.
 String unescapeXmlName(String name)
          Deprecated. As of 1.4, use AbstractReader.decodeNode(String) or AbstractReader.decodeAttribute(String) instead.
 
Methods inherited from class com.thoughtworks.xstream.io.AbstractReader
decodeAttribute, decodeNode, encodeAttribute, encodeNode, peekNextChild, underlyingReader
 
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.HierarchicalStreamReader
appendErrors, close, getAttribute, getAttribute, getAttributeCount, getAttributeName, getAttributeNames, getNodeName, getValue, hasMoreChildren, moveDown, moveUp
 

Constructor Detail

AbstractXmlReader

protected AbstractXmlReader()
Deprecated. 

AbstractXmlReader

protected AbstractXmlReader(XmlFriendlyReplacer replacer)
Deprecated. As of 1.4, use AbstractReader instead.


AbstractXmlReader

protected AbstractXmlReader(NameCoder nameCoder)
Deprecated. 
Method Detail

unescapeXmlName

public String unescapeXmlName(String name)
Deprecated. As of 1.4, use AbstractReader.decodeNode(String) or AbstractReader.decodeAttribute(String) instead.

Unescapes XML-friendly name (node or attribute)

Parameters:
name - the escaped XML-friendly name
Returns:
An unescaped name with original characters

escapeXmlName

protected String escapeXmlName(String name)
Deprecated. As of 1.4, use AbstractReader instead.

Escapes XML-unfriendly name (node or attribute)

Parameters:
name - the unescaped XML-unfriendly name
Returns:
An escaped name with original characters


Copyright © 2004-2014 XStream. All Rights Reserved.