flattree.xstream
Class FlatHierarchicalStreamDriver

java.lang.Object
  extended by flattree.xstream.FlatHierarchicalStreamDriver
All Implemented Interfaces:
com.thoughtworks.xstream.io.HierarchicalStreamDriver

public class FlatHierarchicalStreamDriver
extends Object
implements com.thoughtworks.xstream.io.HierarchicalStreamDriver

HierarchicalStreamDriver utilizing FlatHierarchicalStreamReader and FlatHierarchicalStreamWriter .


Constructor Summary
FlatHierarchicalStreamDriver()
          Undefined tree structure.
FlatHierarchicalStreamDriver(Node root)
          Use the given Node defining the tree structure.
 
Method Summary
protected  Node createNode(Node parent, String name, Map<String,String> values)
          Support lazy creation of nodes on writing.
 com.thoughtworks.xstream.io.HierarchicalStreamReader createReader(InputStream input)
           
 com.thoughtworks.xstream.io.HierarchicalStreamReader createReader(Reader reader)
           
 com.thoughtworks.xstream.io.HierarchicalStreamWriter createWriter(OutputStream output)
           
 com.thoughtworks.xstream.io.HierarchicalStreamWriter createWriter(Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatHierarchicalStreamDriver

public FlatHierarchicalStreamDriver()
Undefined tree structure.

See Also:
createNode(Node, String, Map)

FlatHierarchicalStreamDriver

public FlatHierarchicalStreamDriver(Node root)
Use the given Node defining the tree structure.

Parameters:
root - the tree's root
Method Detail

createReader

public com.thoughtworks.xstream.io.HierarchicalStreamReader createReader(InputStream input)
Specified by:
createReader in interface com.thoughtworks.xstream.io.HierarchicalStreamDriver

createWriter

public com.thoughtworks.xstream.io.HierarchicalStreamWriter createWriter(OutputStream output)
Specified by:
createWriter in interface com.thoughtworks.xstream.io.HierarchicalStreamDriver

createReader

public com.thoughtworks.xstream.io.HierarchicalStreamReader createReader(Reader reader)
Specified by:
createReader in interface com.thoughtworks.xstream.io.HierarchicalStreamDriver

createWriter

public com.thoughtworks.xstream.io.HierarchicalStreamWriter createWriter(Writer writer)
Specified by:
createWriter in interface com.thoughtworks.xstream.io.HierarchicalStreamDriver

createNode

protected Node createNode(Node parent,
                          String name,
                          Map<String,String> values)
Support lazy creation of nodes on writing.

See Also:
createWriter(OutputStream), createWriter(Writer)


Copyright © 2011. All Rights Reserved.