|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.demac.impl.j2me.process.base.service.webservices.xml.soap.ksoap.kxml.parser.AbstractXmlParser
public abstract class AbstractXmlParser
An abstract base class for the XML and WBXML parsers. Of course, you can implement your own subclass with additional features, e.g. a validating parser.
Constructor Summary | |
---|---|
AbstractXmlParser()
|
Method Summary | |
---|---|
int |
getLineNumber()
Returns the current line number; -1 if unknown. |
void |
ignoreTree()
Ignores a tree |
abstract ParseEvent |
peek()
reads the next event available from the parser without consuming it |
boolean |
peek(int type,
java.lang.String namespace,
java.lang.String name)
|
abstract ParseEvent |
read()
reads the next event available from the parser. |
ParseEvent |
read(int type,
java.lang.String namespace,
java.lang.String name)
Reads an event of the given type. |
java.lang.String |
readText()
Convenience method for reading the content of text-only elements. |
void |
readTree(java.util.Vector buf)
Reads a complete element tree to the given event Vector. |
void |
setProcessNamespaces(boolean processNamespaces)
tells the parser if it shall resolve namespace prefixes to namespaces. |
void |
skip()
Convenience Method for skip (Xml.COMMENT | Xml.DOCTYPE | Xml.PROCESSING_INSTRUCTION | Xml.WHITESPACE) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractXmlParser()
Method Detail |
---|
public void ignoreTree() throws java.io.IOException
java.io.IOException
public void readTree(java.util.Vector buf) throws java.io.IOException
java.io.IOException
public int getLineNumber() throws java.io.IOException
java.io.IOException
public abstract ParseEvent read() throws java.io.IOException
java.io.IOException
public ParseEvent read(int type, java.lang.String namespace, java.lang.String name) throws java.io.IOException
java.io.IOException
public boolean peek(int type, java.lang.String namespace, java.lang.String name) throws java.io.IOException
java.io.IOException
public void skip() throws java.io.IOException
java.io.IOException
public abstract ParseEvent peek() throws java.io.IOException
java.io.IOException
public void setProcessNamespaces(boolean processNamespaces)
public java.lang.String readText() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |