flattree.config
Class FlatTree

java.lang.Object
  extended by flattree.config.FlatTree

public class FlatTree
extends Object

A configurator of a tree's Nodes utilizing an XML configuration.


Constructor Summary
FlatTree(File file)
          Configure from the given file.
FlatTree(InputStream input)
          Configure from the given input.
FlatTree(Reader reader)
          Configure from the given reader.
 
Method Summary
 Node getRoot()
          Get the root Node of the configured tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatTree

public FlatTree(File file)
         throws IOException
Configure from the given file.

Parameters:
file - file to read configuration from
Throws:
IOException

FlatTree

public FlatTree(InputStream input)
         throws IOException
Configure from the given input.

Parameters:
input - input to read configuration from - will not be closed
Throws:
IOException

FlatTree

public FlatTree(Reader reader)
         throws IOException
Configure from the given reader.

Parameters:
reader - reader to read configuration from - will not be closed
Throws:
IOException
Method Detail

getRoot

public Node getRoot()
Get the root Node of the configured tree.

Returns:
root


Copyright © 2011. All Rights Reserved.