flattree.xstream
Class FlatHierarchicalStreamWriter

java.lang.Object
  extended by flattree.xstream.FlatHierarchicalStreamWriter
All Implemented Interfaces:
com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter, com.thoughtworks.xstream.io.HierarchicalStreamWriter

public class FlatHierarchicalStreamWriter
extends Object
implements com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter

A hierarchical writer of flat files.


Constructor Summary
FlatHierarchicalStreamWriter(Node root, Writer writer)
           
FlatHierarchicalStreamWriter(TreeWriter writer)
           
 
Method Summary
 void addAttribute(String name, String value)
           
 void close()
           
 void endNode()
           
 void flush()
           
 void setValue(String name)
           
 void startNode(String name)
           
 void startNode(String name, Class clazz)
           
 com.thoughtworks.xstream.io.HierarchicalStreamWriter underlyingWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatHierarchicalStreamWriter

public FlatHierarchicalStreamWriter(Node root,
                                    Writer writer)

FlatHierarchicalStreamWriter

public FlatHierarchicalStreamWriter(TreeWriter writer)
Method Detail

startNode

public void startNode(String name,
                      Class clazz)
Specified by:
startNode in interface com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter

startNode

public void startNode(String name)
Specified by:
startNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

addAttribute

public void addAttribute(String name,
                         String value)
Specified by:
addAttribute in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

setValue

public void setValue(String name)
Specified by:
setValue in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

endNode

public void endNode()
Specified by:
endNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

flush

public void flush()
Specified by:
flush in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

close

public void close()
Specified by:
close in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

underlyingWriter

public com.thoughtworks.xstream.io.HierarchicalStreamWriter underlyingWriter()
Specified by:
underlyingWriter in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter


Copyright © 2011. All Rights Reserved.