WPI GDC CMS 0.0.1

org.wpi.gdc.xml
Class LiteXML

java.lang.Object
  |
  +--org.wpi.gdc.xml.LiteXML

public class LiteXML
extends java.lang.Object

A super-light XML parser, this ALMOST follows the XML spec. It's almost a SAX parser, but not quite. On the other hand, it's lightweight.

Version:
1.2
Author:
dmpotter

Field Summary
protected  LiteXMLCallback callback
          The callback that receives events.
 
Constructor Summary
LiteXML(LiteXMLCallback callback)
          Creates a new LiteXML parser object that returns parsed information to the given callback.
 
Method Summary
 void parse(java.io.File file)
           
 void parse(java.io.InputStream in)
           
 void parse(java.io.Reader in)
          Preferred parse command (all others call this) - parses an XML document read.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callback

protected LiteXMLCallback callback
The callback that receives events.
Constructor Detail

LiteXML

public LiteXML(LiteXMLCallback callback)
Creates a new LiteXML parser object that returns parsed information to the given callback.
Parameters:
callback - the class receiving XML events
Throws:
NullPointerException - if the callback is null
Method Detail

parse

public void parse(java.io.File file)
           throws java.io.IOException,
                  LiteXMLParseException

parse

public void parse(java.io.InputStream in)
           throws java.io.IOException,
                  LiteXMLParseException

parse

public void parse(java.io.Reader in)
           throws java.io.IOException,
                  LiteXMLParseException
Preferred parse command (all others call this) - parses an XML document read.

WPI GDC CMS 0.0.1

Copyright © 2001 WPI Game Development Club. All Rights Reserved.