Package org.apache.maven.internal.xml
Class XmlNodeBuilder
java.lang.Object
org.apache.maven.internal.xml.XmlNodeBuilder
All methods in this class attempt to fully parse the XML.
The caller is responsible for closing
InputStream
and Reader
arguments.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Input location builder interface, to be implemented to choose how to store data.static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XmlNodeImpl
build
(InputStream is, String encoding) static XmlNodeImpl
build
(InputStream is, String encoding, boolean trim) static XmlNodeImpl
static XmlNodeImpl
static XmlNodeImpl
build
(Reader reader, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder) static XmlNodeImpl
build
(Reader reader, XmlNodeBuilder.InputLocationBuilder locationBuilder) static XmlNodeImpl
build
(Reader reader, XmlNodeBuilder.InputLocationBuilderStax locationBuilder) static XmlNodeImpl
build
(XMLStreamReader parser) static XmlNodeImpl
build
(XMLStreamReader parser, boolean trim, XmlNodeBuilder.InputLocationBuilderStax locationBuilder) static XmlNodeImpl
build
(XMLStreamReader parser, XmlNodeBuilder.InputLocationBuilderStax locationBuilder) static XmlNodeImpl
build
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) static XmlNodeImpl
build
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean trim) static XmlNodeImpl
build
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder)
-
Constructor Details
-
XmlNodeBuilder
public XmlNodeBuilder()
-
-
Method Details
-
build
public static XmlNodeImpl build(Reader reader) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
-
build
public static XmlNodeImpl build(Reader reader, XmlNodeBuilder.InputLocationBuilder locationBuilder) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Parameters:
reader
- the readerlocationBuilder
- the builder- Returns:
- DOM
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- xml exceptionIOException
- io- Since:
- 3.2.0
-
build
public static XmlNodeImpl build(InputStream is, String encoding) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
-
build
public static XmlNodeImpl build(InputStream is, String encoding, boolean trim) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
-
build
public static XmlNodeImpl build(Reader reader, boolean trim) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
-
build
public static XmlNodeImpl build(Reader reader, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Parameters:
reader
- the readertrim
- to trimlocationBuilder
- the builder- Returns:
- DOM
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- xml exceptionIOException
- io- Since:
- 3.2.0
-
build
public static XmlNodeImpl build(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
-
build
public static XmlNodeImpl build(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean trim) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
-
build
public static XmlNodeImpl build(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean trim, XmlNodeBuilder.InputLocationBuilder locationBuilder) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException - Parameters:
parser
- the parsertrim
- do trimlocationBuilder
- builder- Returns:
- DOM
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- xml exceptionIOException
- io- Since:
- 3.2.0
-
build
public static XmlNodeImpl build(Reader reader, XmlNodeBuilder.InputLocationBuilderStax locationBuilder) throws XMLStreamException - Throws:
XMLStreamException
-
build
- Throws:
XMLStreamException
-
build
public static XmlNodeImpl build(XMLStreamReader parser, XmlNodeBuilder.InputLocationBuilderStax locationBuilder) throws XMLStreamException - Throws:
XMLStreamException
-
build
public static XmlNodeImpl build(XMLStreamReader parser, boolean trim, XmlNodeBuilder.InputLocationBuilderStax locationBuilder) throws XMLStreamException - Throws:
XMLStreamException
-