Package org.apache.maven.internal.xml
Class XmlNodeBuilder
java.lang.Object
org.apache.maven.internal.xml.XmlNodeBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInput location builder interface, to be implemented to choose how to store data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XmlNodeImplbuild(InputStream is, String encoding) static XmlNodeImplbuild(InputStream is, String encoding, boolean trim) static XmlNodeImplstatic XmlNodeImplstatic XmlNodeImplbuild(Reader reader, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder) static XmlNodeImplbuild(Reader reader, XmlNodeBuilder.InputLocationBuilder locationBuilder) static XmlNodeImplbuild(XmlPullParser parser) static XmlNodeImplbuild(XmlPullParser parser, boolean trim) static XmlNodeImplbuild(XmlPullParser parser, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder)
-
Constructor Details
-
XmlNodeBuilder
public XmlNodeBuilder()
-
-
Method Details
-
build
- Throws:
XmlPullParserExceptionIOException
-
build
public static XmlNodeImpl build(Reader reader, XmlNodeBuilder.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 XmlNodeImpl build(InputStream is, String encoding) throws XmlPullParserException, IOException - Throws:
XmlPullParserExceptionIOException
-
build
public static XmlNodeImpl build(InputStream is, String encoding, boolean trim) throws XmlPullParserException, IOException - Throws:
XmlPullParserExceptionIOException
-
build
public static XmlNodeImpl build(Reader reader, boolean trim) throws XmlPullParserException, IOException - Throws:
XmlPullParserExceptionIOException
-
build
public static XmlNodeImpl build(Reader reader, boolean trim, XmlNodeBuilder.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
- Throws:
XmlPullParserExceptionIOException
-
build
public static XmlNodeImpl build(XmlPullParser parser, boolean trim) throws XmlPullParserException, IOException - Throws:
XmlPullParserExceptionIOException
-
build
public static XmlNodeImpl build(XmlPullParser parser, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder) throws XmlPullParserException, IOException - Parameters:
locationBuilder- builderparser- the parsertrim- do trim- Returns:
- DOM
- Throws:
XmlPullParserException- xml exceptionIOException- io- Since:
- 3.2.0
-