|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.SimpleXMLParser
public class SimpleXMLParser
A simple implementation of an XML parser, this implementation does not require any third party XML parser libraries
Constructor Summary | |
---|---|
SimpleXMLParser()
|
Method Summary | |
---|---|
boolean |
parse(InputStream in,
XMLParserHandlerInterface handler)
Parse an XML document in an InputStream using the specified XML parser handler implementation |
boolean |
parse(String str,
XMLParserHandlerInterface handler)
Parse an XML document in String using the specified XML parser handler implementation |
protected int |
skipSpaces(String data,
int pos)
Calculate the position of the first real character after the specified position, skipping space and tab characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleXMLParser()
Method Detail |
---|
protected int skipSpaces(String data, int pos)
data
- The text stringpos
- The start position in the string
public boolean parse(InputStream in, XMLParserHandlerInterface handler)
XMLParserInterface
parse
in interface XMLParserInterface
in
- The InputStream with the XML documenthandler
- The XML parser handler implementation to use when parsing
public boolean parse(String str, XMLParserHandlerInterface handler)
XMLParserInterface
parse
in interface XMLParserInterface
str
- The String object with the XML documenthandler
- The XML parser handler implementation to use when parsing
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |