public class XppFactory extends Object
| Constructor and Description | 
|---|
XppFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
public static XmlPullParser createDefaultParser()
                                         throws XmlPullParserException
XmlPullParserException - if the factory failspublic static XppDom buildDom(String xml) throws XmlPullParserException, IOException
xml - the XML dataXmlPullParserException - if the default parser cannot be created or fails with invalid XMLIOException - if the data cannot be readXppDom.build(XmlPullParser)public static XppDom buildDom(Reader r) throws XmlPullParserException, IOException
r - the readerXmlPullParserException - if the default parser cannot be created or fails with invalid XMLIOException - 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 streamXmlPullParserException - if the default parser cannot be created or fails with invalid XMLIOException - if the data cannot be readXppDom.build(XmlPullParser)Copyright © 2004–2016 XStream. All rights reserved.