|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.common.xml.ElementParser
XML element parser. XML is parsed to produce Element objects.
Note: This parser is XML Namespaces-aware.
| Constructor Summary | |
ElementParser()
Constructs a new ElementParser. |
|
| Method Summary | |
Element |
parse(InputStream in)
Parses content of a character stream to create an XML Element object. |
Element |
parse(Reader in)
Parses content of a character stream to create an XML Element object. |
Element |
parse(String text)
Parses the specified String to create an XML Element object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ElementParser()
ElementParser.
| Method Detail |
public Element parse(String text)
throws IllegalArgumentException,
ParseException
Element object.
text - the XML text to be parsed, not null.
null.
IllegalArgumentException - if text == null.
ParseException - if the content of the character stream is not considered to be valid XML.
public Element parse(InputStream in)
throws IllegalArgumentException,
IOException,
ParseException
Element object.
in - the byte stream that is supposed to contain XML to be parsed,
not null.
null.
IllegalArgumentException - if in == null.
IOException - if there is an I/O error.
ParseException - if the content of the character stream is not considered to be valid
XML.
public Element parse(Reader in)
throws IllegalArgumentException,
IOException,
ParseException
Element object.
in - the character stream that is supposed to contain XML to be parsed,
not null.
null.
IllegalArgumentException - if in == null.
IOException - if there is an I/O error.
ParseException - if the content of the character stream is not considered to be valid
XML.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||