gd.xml.tiny
Class TinyParser

java.lang.Object
  |
  +--gd.xml.tiny.TinyParser

public class TinyParser
extends java.lang.Object


Constructor Summary
TinyParser()
           
 
Method Summary
static ParsedXML parseXML(java.io.InputStream is)
          Parses an input stream as XML.
static ParsedXML parseXML(java.lang.String fname)
          Parses XML encoded data into a tree.
static ParsedXML parseXML(java.net.URL url)
          Parses XML encoded data into a tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TinyParser

public TinyParser()
Method Detail

parseXML

public static ParsedXML parseXML(java.io.InputStream is)
                          throws ParseException
Parses an input stream as XML.
Parameters:
is - the input stream from which the XML should be read
Returns:
the root node of a parse tree generated from the input stream

parseXML

public static ParsedXML parseXML(java.net.URL url)
                          throws ParseException
Parses XML encoded data into a tree. The XML is read from a URL
Parameters:
url - the URL from which the XML is obtained
Returns:
the root node of the parse tree

parseXML

public static ParsedXML parseXML(java.lang.String fname)
                          throws ParseException
Parses XML encoded data into a tree. The XML is read from a file with the name specified.
Parameters:
fname - the name of the file from which the XML is read
Returns:
the root node of the parse tree