superwaba.ext.xplat.util.xml
Class HttpXmlLiteParser
java.lang.Object
|
+--superwaba.ext.xplat.util.xml.XmlLiteParser
|
+--superwaba.ext.xplat.util.xml.HttpXmlLiteParser
- public class HttpXmlLiteParser
- extends XmlLiteParser
Listener that must be extended to process the events thrown by HttpXmlLiteParser.
|
Method Summary |
void |
parse(Stream input,
int bufferSize)
This method parses the bytes from the passed stream.
|
protected void |
parseBuffer(byte[] input,
int size)
This method does the actual parsing and call backs working for the
current values of pos, len, start and state. |
httpListener
protected HttpXmlListener httpListener
eol
protected byte eol
HttpXmlLiteParser
public HttpXmlLiteParser(HttpXmlListener listener)
- Constructor.
- Parameters:
listener -
parse
public void parse(Stream input,
int bufferSize)
throws ParserException
- This method parses the bytes from the passed stream.
The algorithm is based on DFA (Deterministic Finite Automata) theory and
Regular Expression theory.
- Parameters:
input - Input stream.bufferSize - The bufer size to use. No tag or content can be
larger than the buffer.- Throws:
- ParserException -
parseBuffer
protected void parseBuffer(byte[] input,
int size)
throws ParserException
- Description copied from class: XmlLiteParser
- This method does the actual parsing and call backs working for the
current values of pos, len, start and state. It is called by
parse(byte[],int) and may be called by derived XmlLiteParsers.
atn
- Overrides:
- parseBuffer in class XmlLiteParser
- Parameters:
size - - Throws:
- ParserException -