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
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 |
callback
protected LiteXMLCallback callback
- The callback that receives events.
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
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.
Copyright © 2001 WPI Game Development Club. All Rights Reserved.