|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hedenus.mobilexml.XMLReader
public class XMLReader
An XML reader which understands namespaces, xml:id, xml:base, xml:space, xml:lang. The XMLReader is based on XMLParser.
Nested Class Summary | |
---|---|
static class |
XMLReader.Scope
The scope of an XML element. |
Constructor Summary | |
---|---|
XMLReader(XMLReaderEventListener listener)
|
Method Summary | |
---|---|
protected XMLReader.Scope |
createScope(XMLReader.Scope parent)
Creates a new scope instance. |
void |
elementBegin(Element element,
java.util.List attributeList)
Method called when an tag start is encountered. |
void |
elementEnd(java.lang.String tagName)
The method called when a tag end is encountered. |
int |
getLineNumber()
|
boolean |
isIgnoreEmptyText()
|
void |
read(java.io.InputStream in,
java.lang.String encoding,
java.lang.String documentBase)
|
void |
reset()
|
void |
setIgnoreEmptyText(boolean ignoreEmptyText)
|
void |
stop()
Tells the reader to finish parsing as soon as possible. |
void |
text(java.lang.String text)
Method called when some plain text between two tags is encountered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLReader(XMLReaderEventListener listener)
Method Detail |
---|
protected XMLReader.Scope createScope(XMLReader.Scope parent)
public void stop()
public int getLineNumber()
public void reset()
public void read(java.io.InputStream in, java.lang.String encoding, java.lang.String documentBase) throws java.io.IOException, XMLException
java.io.IOException
XMLException
public boolean isIgnoreEmptyText()
public void setIgnoreEmptyText(boolean ignoreEmptyText)
public void elementBegin(Element element, java.util.List attributeList) throws XMLException
XMLParserEventListener
elementBegin
in interface XMLParserEventListener
element
- the current elementattributeList
- the list of Attribute
objects (Note: the list is live!)
XMLException
public void elementEnd(java.lang.String tagName) throws XMLException
XMLParserEventListener
elementEnd
in interface XMLParserEventListener
XMLException
public void text(java.lang.String text) throws XMLException
XMLParserEventListener
text
in interface XMLParserEventListener
XMLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |