Class MavenToolchainsStaxReader
java.lang.Object
org.apache.maven.toolchain.v4.MavenToolchainsStaxReader
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMavenToolchainsStaxReader(MavenToolchainsStaxReader.ContentTransformer contentTransformer) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the state of the "add default entities" flag.booleanReturns the state of the "add location information" flag.Returns theXMLInputFactoryused by this reader.org.apache.maven.api.toolchain.PersistedToolchainsread(InputStream in) org.apache.maven.api.toolchain.PersistedToolchainsread(InputStream in, boolean strict, org.apache.maven.api.toolchain.InputSource inputSrc) Method read.org.apache.maven.api.toolchain.PersistedToolchainsorg.apache.maven.api.toolchain.PersistedToolchainsorg.apache.maven.api.toolchain.PersistedToolchainsread(XMLStreamReader parser, boolean strict, org.apache.maven.api.toolchain.InputSource inputSrc) Method read.voidsetAddDefaultEntities(boolean addDefaultEntities) Sets the state of the "add default entities" flag.voidsetAddLocationInformation(boolean addLocationInformation) Sets the state of the "add location information" flag.
-
Constructor Details
-
MavenToolchainsStaxReader
public MavenToolchainsStaxReader() -
MavenToolchainsStaxReader
-
-
Method Details
-
getXMLInputFactory
Returns theXMLInputFactoryused by this reader.- Returns:
- the
XMLInputFactoryused by this reader.
-
getAddDefaultEntities
public boolean getAddDefaultEntities()Returns the state of the "add default entities" flag.- Returns:
- boolean
-
setAddDefaultEntities
public void setAddDefaultEntities(boolean addDefaultEntities) Sets the state of the "add default entities" flag.- Parameters:
addDefaultEntities- a addDefaultEntities object.
-
getAddLocationInformation
public boolean getAddLocationInformation()Returns the state of the "add location information" flag.- Returns:
- boolean
-
setAddLocationInformation
public void setAddLocationInformation(boolean addLocationInformation) Sets the state of the "add location information" flag.- Parameters:
addLocationInformation- a addLocationInformation object.
-
read
public org.apache.maven.api.toolchain.PersistedToolchains read(Reader reader) throws XMLStreamException - Throws:
XMLStreamException
-
read
public org.apache.maven.api.toolchain.PersistedToolchains read(Reader reader, boolean strict, org.apache.maven.api.toolchain.InputSource inputSrc) throws XMLStreamException - Parameters:
reader- a reader object.strict- a strict object.- Returns:
- PersistedToolchains
- Throws:
XMLStreamException- XMLStreamException if any.
-
read
public org.apache.maven.api.toolchain.PersistedToolchains read(InputStream in) throws XMLStreamException - Throws:
XMLStreamException
-
read
public org.apache.maven.api.toolchain.PersistedToolchains read(InputStream in, boolean strict, org.apache.maven.api.toolchain.InputSource inputSrc) throws XMLStreamException Method read.- Parameters:
in- a in object.strict- a strict object.- Returns:
- PersistedToolchains
- Throws:
XMLStreamException- XMLStreamException if any.
-
read
public org.apache.maven.api.toolchain.PersistedToolchains read(XMLStreamReader parser, boolean strict, org.apache.maven.api.toolchain.InputSource inputSrc) throws XMLStreamException Method read.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- PersistedToolchains
- Throws:
XMLStreamException- XMLStreamException if any.
-