net.sf.jtreemap.swing.example
Class BuilderXML

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

public class BuilderXML
extends Object

Parse a XML file to build the tree.

Author:
Laurent Dutheil

Constructor Summary
BuilderXML(File stFile)
          Constructor
BuilderXML(InputStream stream)
          Constructor
BuilderXML(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(String stFileName)
           throws ParseException
Constructor

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

BuilderXML

public BuilderXML(File stFile)
           throws ParseException
Constructor

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

BuilderXML

public BuilderXML(InputStream stream)
           throws ParseException
Constructor

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

getRoot

public TreeMapNode getRoot()
get the build root

Returns:
the build root


Copyright © 2012. All Rights Reserved.