|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.io.xml.xppdom.XppFactory
public class XppFactory
XmlPullParser utility methods.
| Constructor Summary | |
|---|---|
XppFactory()
|
|
| Method Summary | |
|---|---|
static XppDom |
buildDom(InputStream in,
String encoding)
Build an XPP DOM hierarchy from an InputStream. |
static XppDom |
buildDom(Reader r)
Build an XPP DOM hierarchy from a Reader. |
static XppDom |
buildDom(String xml)
Build an XPP DOM hierarchy from a String. |
static XmlPullParser |
createDefaultParser()
Create a new XmlPullParser using the XPP factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XppFactory()
| Method Detail |
|---|
public static XmlPullParser createDefaultParser()
throws XmlPullParserException
XmlPullParserException - if the factory fails
public static XppDom buildDom(String xml)
throws XmlPullParserException,
IOException
xml - the XML data
XmlPullParserException - if the default parser cannot be created or fails with invalid XML
IOException - if the data cannot be readXppDom.build(XmlPullParser)
public static XppDom buildDom(Reader r)
throws XmlPullParserException,
IOException
r - the reader
XmlPullParserException - if the default parser cannot be created or fails with invalid XML
IOException - if the data cannot be readXppDom.build(XmlPullParser)
public static XppDom buildDom(InputStream in,
String encoding)
throws XmlPullParserException,
IOException
in - the input streamencoding - the encoding of the input stream
XmlPullParserException - if the default parser cannot be created or fails with invalid XML
IOException - if the data cannot be readXppDom.build(XmlPullParser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||