com.thoughtworks.xstream.io.xml
Class AbstractXmlWriter

java.lang.Object
  extended by com.thoughtworks.xstream.io.AbstractWriter
      extended by com.thoughtworks.xstream.io.xml.AbstractXmlWriter
All Implemented Interfaces:
ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter, XmlFriendlyWriter
Direct Known Subclasses:
AbstractDocumentWriter, Dom4JXmlWriter, PrettyPrintWriter, SaxWriter, StaxWriter

Deprecated. As of 1.4 use AbstractWriter instead

public abstract class AbstractXmlWriter
extends AbstractWriter
implements XmlFriendlyWriter

Abstract base implementation of HierarchicalStreamWriter that provides common functionality to all XML-based writers.

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

Constructor Summary
protected AbstractXmlWriter()
          Deprecated.  
protected AbstractXmlWriter(NameCoder nameCoder)
          Deprecated.  
protected AbstractXmlWriter(XmlFriendlyReplacer replacer)
          Deprecated. As of 1.4
 
Method Summary
 String escapeXmlName(String name)
          Deprecated. As of 1.4 use AbstractWriter.encodeNode(String) or AbstractWriter.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 String escapeXmlName(String name)
Deprecated. As of 1.4 use AbstractWriter.encodeNode(String) or AbstractWriter.encodeAttribute(String) instead

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

Specified by:
escapeXmlName in interface XmlFriendlyWriter
Parameters:
name - the unescaped XML name
Returns:
An escaped name with original characters replaced


Copyright © 2004-2014 XStream. All Rights Reserved.