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
-
Constructor Summary
Constructors Constructor Description Xpp3DomBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated 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 noop)Deprecated.use the two-arg variantstatic Xpp3Dombuild(java.io.Reader reader)static Xpp3Dombuild(java.io.Reader in, boolean noop)Deprecated.use {#build(java.io.Reader)}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)
-
-
-
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
@Deprecated public static Xpp3Dom build(@WillClose java.io.InputStream is, @Nonnull java.lang.String encoding, boolean noop) throws XmlPullParserException
Deprecated.use the two-arg variant- Parameters:
is-InputStreamencoding- the encodingnoop- vestigial argument with no effect- Returns:
- the built DOM
- Throws:
XmlPullParserException- in case of an error
-
build
@Deprecated public static Xpp3Dom build(@WillClose java.io.Reader in, boolean noop) throws XmlPullParserException
Deprecated.use {#build(java.io.Reader)}- Parameters:
in-Readernoop- vestigial argument with no effect- Returns:
- the built DOM
- Throws:
XmlPullParserException- in case of an error
-
parseSax
private static Xpp3DomBuilder.DocHandler parseSax(@Nonnull org.xml.sax.InputSource inputSource) 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)
-
-