Package org.codehaus.plexus.util.xml
Class Xpp3DomBuilder
- java.lang.Object
-
- org.codehaus.plexus.util.xml.Xpp3DomBuilder
-
public class Xpp3DomBuilder extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Xpp3DomBuilder.InputLocationBuilder
Input location builder interface, to be implemented to choose how to store data.
-
Constructor Summary
Constructors Constructor Description Xpp3DomBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Xpp3Dom
build(InputStream is, String encoding)
static Xpp3Dom
build(InputStream is, String encoding, boolean trim)
static Xpp3Dom
build(Reader reader)
static Xpp3Dom
build(Reader reader, boolean trim)
static Xpp3Dom
build(Reader reader, boolean trim, Xpp3DomBuilder.InputLocationBuilder locationBuilder)
static Xpp3Dom
build(Reader reader, Xpp3DomBuilder.InputLocationBuilder locationBuilder)
static Xpp3Dom
build(XmlPullParser parser)
static Xpp3Dom
build(XmlPullParser parser, boolean trim)
static Xpp3Dom
build(XmlPullParser parser, boolean trim, Xpp3DomBuilder.InputLocationBuilder locationBuilder)
-
-
-
Method Detail
-
build
public static Xpp3Dom build(Reader reader) throws XmlPullParserException, IOException
- Throws:
XmlPullParserException
IOException
-
build
public static Xpp3Dom build(Reader reader, Xpp3DomBuilder.InputLocationBuilder locationBuilder) throws XmlPullParserException, IOException
- Parameters:
reader
- the readerlocationBuilder
- the builder- Returns:
- DOM
- Throws:
XmlPullParserException
- xml exceptionIOException
- io- Since:
- 3.2.0
-
build
public static Xpp3Dom build(InputStream is, String encoding) throws XmlPullParserException, IOException
- Throws:
XmlPullParserException
IOException
-
build
public static Xpp3Dom build(InputStream is, String encoding, boolean trim) throws XmlPullParserException, IOException
- Throws:
XmlPullParserException
IOException
-
build
public static Xpp3Dom build(Reader reader, boolean trim) throws XmlPullParserException, IOException
- Throws:
XmlPullParserException
IOException
-
build
public static Xpp3Dom build(Reader reader, boolean trim, Xpp3DomBuilder.InputLocationBuilder locationBuilder) throws XmlPullParserException, IOException
- Parameters:
reader
- the readertrim
- to trimlocationBuilder
- the builder- Returns:
- DOM
- Throws:
XmlPullParserException
- xml exceptionIOException
- io- Since:
- 3.2.0
-
build
public static Xpp3Dom build(XmlPullParser parser) throws XmlPullParserException, IOException
- Throws:
XmlPullParserException
IOException
-
build
public static Xpp3Dom build(XmlPullParser parser, boolean trim) throws XmlPullParserException, IOException
- Throws:
XmlPullParserException
IOException
-
build
public static Xpp3Dom build(XmlPullParser parser, boolean trim, Xpp3DomBuilder.InputLocationBuilder locationBuilder) throws XmlPullParserException, IOException
- Parameters:
locationBuilder
- builderparser
- the parsertrim
- do trim- Returns:
- DOM
- Throws:
XmlPullParserException
- xml exceptionIOException
- io- Since:
- 3.2.0
-
-