|
||||||||||
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
org.demac.impl.j2me.process.base.service.webservices.xml.soap.ksoap.kxml.parser.XmlParser
public class XmlParser
A simple, pull based "Common XML" parser. Attention: This class has been renamed from DefaultParser for consitency with the org.kxml.io package.
Constructor Summary | |
---|---|
XmlParser(java.io.Reader reader)
|
|
XmlParser(java.io.Reader reader,
int bufSize)
|
Method Summary | |
---|---|
int |
getColumnNumber()
|
int |
getLineNumber()
Returns the current line number; -1 if unknown. |
ParseEvent |
peek()
reads the next event available from the parser without consuming it |
ParseEvent |
read()
reads the next event available from the parser. |
java.lang.String |
readName()
|
java.lang.StringBuffer |
readTo(char stopChar,
java.lang.StringBuffer buf)
Reads chars to the given buffer until the given stopChar is reached. |
java.lang.String |
resolveCharacterEntity(java.lang.String name)
|
void |
setRelaxed(boolean relaxed)
default is false. |
Methods inherited from class org.demac.impl.j2me.process.base.service.webservices.xml.soap.ksoap.kxml.parser.AbstractXmlParser |
---|
ignoreTree, peek, read, readText, readTree, setProcessNamespaces, skip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlParser(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public XmlParser(java.io.Reader reader, int bufSize) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String readName() throws java.io.IOException
java.io.IOException
public java.lang.StringBuffer readTo(char stopChar, java.lang.StringBuffer buf) throws java.io.IOException
java.io.IOException
public java.lang.String resolveCharacterEntity(java.lang.String name) throws java.io.IOException
java.io.IOException
public ParseEvent read() throws java.io.IOException
AbstractXmlParser
read
in class AbstractXmlParser
java.io.IOException
public ParseEvent peek() throws java.io.IOException
AbstractXmlParser
peek
in class AbstractXmlParser
java.io.IOException
public void setRelaxed(boolean relaxed)
public int getLineNumber()
AbstractXmlParser
getLineNumber
in class AbstractXmlParser
public int getColumnNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |