superwaba.ext.xplat.util.xml
Class LiteParser

java.lang.Object
  |
  +--superwaba.ext.xplat.util.xml.LiteParser
Direct Known Subclasses:
HttpLiteParser, XmlLiteParser

public class LiteParser
extends Object

This is a fast and simple parser for a lite version of XML format. You can use this parser with SuperWaba VM to parse data from an open Stream.

The parser looks for:

When the parser finds these elements it calls respectively:

The parsing algorithm is based on DFA (Deterministic Finite Automata) theory and Regular Expression theory. See the following schema:

In order to use this parser you need to extend the XmlListener class and override the above methods. To start parsing, call the method parse(byte inputBytes, int length).

See also samples/util/xml.


Field Summary
protected  int pos
          pos in buffer
protected  int state
          current state
 
Constructor Summary
LiteParser()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, toString, wait, wait
 

Field Detail

state

protected int state
current state

pos

protected int pos
pos in buffer
Constructor Detail

LiteParser

public LiteParser()