public class XppFactory
extends java.lang.Object
Constructor and Description |
---|
XppFactory() |
Modifier and Type | Method and Description |
---|---|
static XppDom |
buildDom(java.io.InputStream in,
java.lang.String encoding)
Build an XPP DOM hierarchy from an InputStream.
|
static XppDom |
buildDom(java.io.Reader r)
Build an XPP DOM hierarchy from a Reader.
|
static XppDom |
buildDom(java.lang.String xml)
Build an XPP DOM hierarchy from a String.
|
static org.xmlpull.v1.XmlPullParser |
createDefaultParser()
Create a new XmlPullParser using the XPP factory.
|
public static org.xmlpull.v1.XmlPullParser createDefaultParser() throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserException
- if the factory failspublic static XppDom buildDom(java.lang.String xml) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
xml
- the XML dataorg.xmlpull.v1.XmlPullParserException
- if the default parser cannot be created or fails with invalid XMLjava.io.IOException
- if the data cannot be readXppDom.build(XmlPullParser)
public static XppDom buildDom(java.io.Reader r) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
r
- the readerorg.xmlpull.v1.XmlPullParserException
- if the default parser cannot be created or fails with invalid XMLjava.io.IOException
- if the data cannot be readXppDom.build(XmlPullParser)
public static XppDom buildDom(java.io.InputStream in, java.lang.String encoding) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
in
- the input streamencoding
- the encoding of the input streamorg.xmlpull.v1.XmlPullParserException
- if the default parser cannot be created or fails with invalid XMLjava.io.IOException
- if the data cannot be readXppDom.build(XmlPullParser)
Copyright © 2004–2019 XStream. All rights reserved.