Class Xpp3DomBuilder
- java.lang.Object
-
- org.apache.maven.shared.utils.xml.Xpp3DomBuilder
-
public class Xpp3DomBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classXpp3DomBuilder.DocHandler
-
Field Summary
Fields Modifier and Type Field Description private static booleanDEFAULT_TRIM
-
Constructor Summary
Constructors Constructor Description Xpp3DomBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Xpp3Dombuild(java.io.InputStream is, java.lang.String encoding)static Xpp3Dombuild(java.io.InputStream is, java.lang.String encoding, boolean trim)static Xpp3Dombuild(java.io.Reader reader)static Xpp3Dombuild(java.io.Reader in, boolean trim)private static org.xml.sax.XMLReadercreateXmlReader()private static org.xml.sax.XMLReaderinstantiate(java.lang.String s)private static Xpp3DomBuilder.DocHandlerparseSax(org.xml.sax.InputSource inputSource, boolean trim)
-
-
-
Field Detail
-
DEFAULT_TRIM
private static final boolean DEFAULT_TRIM
- See Also:
- Constant Field Values
-
-
Method Detail
-
build
public static Xpp3Dom build(@WillClose @Nonnull java.io.Reader reader) throws XmlPullParserException
- Parameters:
reader-Reader- Returns:
- the built DOM
- Throws:
XmlPullParserException- in case of an error
-
build
public static Xpp3Dom build(@WillClose java.io.InputStream is, @Nonnull java.lang.String encoding) throws XmlPullParserException
- Parameters:
is-InputStreamencoding- the encoding- Returns:
- the built DOM
- Throws:
XmlPullParserException- in case of an error
-
build
public static Xpp3Dom build(@WillClose java.io.InputStream is, @Nonnull java.lang.String encoding, boolean trim) throws XmlPullParserException
- Parameters:
is-InputStreamencoding- the encodingtrim- true/false- Returns:
- the built DOM
- Throws:
XmlPullParserException- in case of an error
-
build
public static Xpp3Dom build(@WillClose java.io.Reader in, boolean trim) throws XmlPullParserException
- Parameters:
in-Readertrim- true/false- Returns:
- the built DOM
- Throws:
XmlPullParserException- in case of an error
-
parseSax
private static Xpp3DomBuilder.DocHandler parseSax(@Nonnull org.xml.sax.InputSource inputSource, boolean trim) throws XmlPullParserException
- Throws:
XmlPullParserException
-
createXmlReader
private static org.xml.sax.XMLReader createXmlReader() throws org.xml.sax.SAXException- Throws:
org.xml.sax.SAXException
-
instantiate
private static org.xml.sax.XMLReader instantiate(java.lang.String s)
-
-