com.waveset.xml
Class XmlMiniParser

java.lang.Object
  extended bycom.waveset.xml.XmlMiniParser

public class XmlMiniParser
extends java.lang.Object

A simple, fast event oriented XML parser.


Field Summary
static java.lang.String code_id
           
static int ERR_XMLP_INTERNAL
           
static int ERR_XMLP_SYNTAX
           
static int MAX_LOOKAHEAD
          Maximum size of the lookahead buffer.
static int MAX_TOKEN
          Maximum size of a token.
 
Constructor Summary
XmlMiniParser()
           
 
Method Summary
 void close()
           
 java.lang.String getToken()
          Gets the contents of the token buffer as a string.
 void parse()
          Launches the parsing process.
 void reset()
          Resets the parser to its initial state.
 void setHandler(XmlEventHandler h)
          Set the handler
 void setString(java.lang.String src)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

ERR_XMLP_INTERNAL

public static final int ERR_XMLP_INTERNAL
See Also:
Constant Field Values

ERR_XMLP_SYNTAX

public static final int ERR_XMLP_SYNTAX
See Also:
Constant Field Values

MAX_TOKEN

public static final int MAX_TOKEN
Maximum size of a token.

See Also:
Constant Field Values

MAX_LOOKAHEAD

public static final int MAX_LOOKAHEAD
Maximum size of the lookahead buffer.

See Also:
Constant Field Values
Constructor Detail

XmlMiniParser

public XmlMiniParser()
Method Detail

close

public void close()

setString

public void setString(java.lang.String src)

reset

public void reset()
Resets the parser to its initial state. We keep track of run-time options, but lose the input source.


setHandler

public void setHandler(XmlEventHandler h)
Set the handler


getToken

public java.lang.String getToken()
Gets the contents of the token buffer as a string.


parse

public void parse()
           throws XmlParserException
Launches the parsing process.

Throws:
XmlParserException