Class XppFactory
java.lang.Object
com.thoughtworks.xstream.io.xml.xppdom.XppFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XppDombuildDom(InputStream in, String encoding) Build an XPP DOM hierarchy from an InputStream.static XppDomBuild an XPP DOM hierarchy from a Reader.static XppDomBuild an XPP DOM hierarchy from a String.static org.xmlpull.v1.XmlPullParserCreate a new XmlPullParser using the XPP factory.
-
Constructor Details
-
XppFactory
public XppFactory()
-
-
Method Details
-
createDefaultParser
public static org.xmlpull.v1.XmlPullParser createDefaultParser() throws org.xmlpull.v1.XmlPullParserExceptionCreate a new XmlPullParser using the XPP factory.- Returns:
- a new parser instance
- Throws:
org.xmlpull.v1.XmlPullParserException- if the factory fails- Since:
- 1.4.1
-
buildDom
Build an XPP DOM hierarchy from a String.- Parameters:
xml- the XML data- Throws:
org.xmlpull.v1.XmlPullParserException- if the default parser cannot be created or fails with invalid XMLIOException- if the data cannot be read- Since:
- 1.4.1
- See Also:
-
buildDom
Build an XPP DOM hierarchy from a Reader.- Parameters:
r- the reader- Throws:
org.xmlpull.v1.XmlPullParserException- if the default parser cannot be created or fails with invalid XMLIOException- if the data cannot be read- Since:
- 1.4.1
- See Also:
-
buildDom
public static XppDom buildDom(InputStream in, String encoding) throws org.xmlpull.v1.XmlPullParserException, IOException Build an XPP DOM hierarchy from an InputStream.- Parameters:
in- the input streamencoding- the encoding of the input stream- Throws:
org.xmlpull.v1.XmlPullParserException- if the default parser cannot be created or fails with invalid XMLIOException- if the data cannot be read- Since:
- 1.4.1
- See Also:
-