de.hedenus.mobilexml
Class XMLParser
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser(XMLParserEventListener eventListener)
parse
public void parse(java.io.InputStream inputStream,
java.lang.String encoding)
throws java.io.IOException
- Parses the input stream.
- Parameters:
inputStream
- the input streamencoding
- 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()