public class Xpp3DomBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
Xpp3DomBuilder.DocHandler |
Modifier and Type | Field and Description |
---|---|
private static boolean |
DEFAULT_TRIM |
Constructor and Description |
---|
Xpp3DomBuilder() |
Modifier and Type | Method and Description |
---|---|
static Xpp3Dom |
build(java.io.InputStream is,
java.lang.String encoding) |
static Xpp3Dom |
build(java.io.InputStream is,
java.lang.String encoding,
boolean trim) |
static Xpp3Dom |
build(java.io.Reader reader) |
static Xpp3Dom |
build(java.io.Reader in,
boolean trim) |
private static org.xml.sax.XMLReader |
createXmlReader() |
private static org.xml.sax.XMLReader |
instantiate(java.lang.String s) |
private static Xpp3DomBuilder.DocHandler |
parseSax(org.xml.sax.InputSource inputSource,
boolean trim) |
private static final boolean DEFAULT_TRIM
public static Xpp3Dom build(@WillClose @Nonnull java.io.Reader reader) throws XmlPullParserException
reader
- Reader
XmlPullParserException
- in case of an errorpublic static Xpp3Dom build(@WillClose java.io.InputStream is, @Nonnull java.lang.String encoding) throws XmlPullParserException
is
- InputStream
encoding
- the encodingXmlPullParserException
- in case of an errorpublic static Xpp3Dom build(@WillClose java.io.InputStream is, @Nonnull java.lang.String encoding, boolean trim) throws XmlPullParserException
is
- InputStream
encoding
- the encodingtrim
- true/falseXmlPullParserException
- in case of an errorpublic static Xpp3Dom build(@WillClose java.io.Reader in, boolean trim) throws XmlPullParserException
in
- Reader
trim
- true/falseXmlPullParserException
- in case of an errorprivate static Xpp3DomBuilder.DocHandler parseSax(@Nonnull org.xml.sax.InputSource inputSource, boolean trim) throws XmlPullParserException
XmlPullParserException
private static org.xml.sax.XMLReader createXmlReader() throws org.xml.sax.SAXException
org.xml.sax.SAXException
private static org.xml.sax.XMLReader instantiate(java.lang.String s)