Class StatefulWriter

java.lang.Object
com.thoughtworks.xstream.io.WriterWrapper
com.thoughtworks.xstream.io.StatefulWriter
All Implemented Interfaces:
ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter

public class StatefulWriter extends WriterWrapper
An wrapper for all HierarchicalStreamWriter implementations, that keeps the state. Writing in a wrong state will throw a StreamException, that wraps either an IOException (writing to a closed writer) or an IllegalStateException. The implementation will also track unbalanced nodes or multiple attributes with the same name.
Since:
1.2