net.sf.jtreemap.swing.example
Class BuilderXML

java.lang.Object
  extended by net.sf.jtreemap.swing.example.BuilderXML

public class BuilderXML
extends java.lang.Object

Parse a XML file to build the tree.

 

Constructor Summary
BuilderXML(java.io.File stFile)
          Constructor
BuilderXML(java.io.InputStream stream)
          Constructor
BuilderXML(java.lang.String stFileName)
          Constructor
 
Method Summary
 TreeMapNode getRoot()
          get the build root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuilderXML

public BuilderXML(java.lang.String stFileName)
           throws java.text.ParseException
Constructor

Throws:
java.text.ParseException - if the file don't correspond to the TreeMap.dtd
Parameters:
stFileName - XML file name

BuilderXML

public BuilderXML(java.io.File stFile)
           throws java.text.ParseException
Constructor

Throws:
java.text.ParseException - if the file don't correspond to the TreeMap.dtd
Parameters:
stFile - XML file object

BuilderXML

public BuilderXML(java.io.InputStream stream)
           throws java.text.ParseException
Constructor

Throws:
java.text.ParseException - if the file don't correspond to the TreeMap.dtd
Parameters:
stream - InputStream representing XML file object
Method Detail

getRoot

public TreeMapNode getRoot()
get the build root

Returns:
the build root