com.thoughtworks.xstream.io.xml
Class AbstractXmlWriter

java.lang.Object
  extended by com.thoughtworks.xstream.io.xml.AbstractXmlWriter
All Implemented Interfaces:
ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter
Direct Known Subclasses:
Dom4JWriter, DomWriter, JDomWriter, PrettyPrintWriter, SaxWriter, StaxWriter, XomWriter, XppDomWriter

public abstract class AbstractXmlWriter
extends java.lang.Object
implements ExtendedHierarchicalStreamWriter

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

Since:
1.2
Author:
Mauro Talevi

Constructor Summary
protected AbstractXmlWriter()
           
protected AbstractXmlWriter(XmlFriendlyReplacer replacer)
           
 
Method Summary
protected  java.lang.String escapeXmlName(java.lang.String name)
          Escapes XML name (node or attribute) to be XML-friendly
 
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.ExtendedHierarchicalStreamWriter
startNode
 
Methods inherited from interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
addAttribute, close, endNode, flush, setValue, startNode, underlyingWriter
 

Constructor Detail

AbstractXmlWriter

protected AbstractXmlWriter()

AbstractXmlWriter

protected AbstractXmlWriter(XmlFriendlyReplacer replacer)
Method Detail

escapeXmlName

protected java.lang.String escapeXmlName(java.lang.String name)
Escapes XML name (node or attribute) to be XML-friendly

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


Joe Walnes, http://xstream.codehaus.org/