de.hedenus.mobilexml
Class XMLParser

java.lang.Object
  extended by de.hedenus.mobilexml.XMLParser

public class XMLParser
extends java.lang.Object

An XML parser which does the lexical analysis of a stream.

Author:
Michael Hedenus

Constructor Summary
XMLParser(XMLParserEventListener eventListener)
           
 
Method Summary
 int getLineNumber()
           
 boolean isIgnoreEmptyText()
           
 void parse(java.io.InputStream inputStream, java.lang.String encoding)
          Parses the input stream.
 void setIgnoreEmptyText(boolean ignoreEmptyText)
           
 void stop()
          Tells the parser to finish parsing as soon as possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser(XMLParserEventListener eventListener)
Method Detail

parse

public void parse(java.io.InputStream inputStream,
                  java.lang.String encoding)
           throws java.io.IOException
Parses the input stream.

Parameters:
inputStream - the input stream
encoding - the enocding or null if not known (the parse will then try to auto-detect)
Throws:
java.io.IOException

stop

public void stop()
Tells the parser to finish parsing as soon as possible.


isIgnoreEmptyText

public boolean isIgnoreEmptyText()

setIgnoreEmptyText

public void setIgnoreEmptyText(boolean ignoreEmptyText)

getLineNumber

public int getLineNumber()