superwaba.ext.xplat.util.xml
Class HttpXmlLiteParser

java.lang.Object
  |
  +--superwaba.ext.xplat.util.xml.HttpXmlLiteParser

Deprecated. It is better to user HttpLiteParser and XmlListParser separately.

public class HttpXmlLiteParser
extends Object

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


Field Summary
protected  byte eol
          Deprecated.  
protected  HttpXmlListener httpXmlListener
          Deprecated.  
 
Constructor Summary
HttpXmlLiteParser(HttpXmlListener listener)
          Deprecated. Constructor.
 
Method Summary
 void parse(byte[] input, int size)
          Deprecated. This method parses the bytes from the passed byte array into HTTP and XML callbacks.
 void parse(StreamBuffer sbuf)
          Deprecated. This method parses the bytes from the passed stream buffer into HTTP and XML callbacks.
 void parse(Stream input, int bufferSize)
          Deprecated. This method parses the bytes from the passed stream into HTTP and XML callbacks.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, toString, wait, wait
 

Field Detail

httpXmlListener

protected HttpXmlListener httpXmlListener
Deprecated. 

eol

protected byte eol
Deprecated. 
Constructor Detail

HttpXmlLiteParser

public HttpXmlLiteParser(HttpXmlListener listener)
Deprecated. 
Constructor.
Parameters:
listener -  
Method Detail

parse

public void parse(Stream input,
                  int bufferSize)
           throws ParserException
Deprecated. 
This method parses the bytes from the passed stream into HTTP and XML callbacks. 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 -  

parse

public void parse(StreamBuffer sbuf)
           throws ParserException
Deprecated. 
This method parses the bytes from the passed stream buffer into HTTP and XML callbacks. The algorithm is based on DFA (Deterministic Finite Automata) theory and Regular Expression theory.
Parameters:
sbuff - A buffer that can be refilled from a stream
Throws:
ParserException -  

parse

public void parse(byte[] input,
                  int size)
           throws ParserException
Deprecated. 
This method parses the bytes from the passed byte array into HTTP and XML callbacks. The algorithm is based on DFA (Deterministic Finite Automata) theory and Regular Expression theory.
Parameters:
size -  
Throws:
ParserException -