Class MavenXpp3Reader
- java.lang.Object
-
- org.apache.maven.model.v3_0_0.io.xpp3.MavenXpp3Reader
-
public class MavenXpp3Reader extends java.lang.Object
Class MavenXpp3Reader.- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MavenXpp3Reader.ContentTransformer
-
Field Summary
Fields Modifier and Type Field Description MavenXpp3Reader.ContentTransformer
contentTransformer
Field contentTransformer.
-
Constructor Summary
Constructors Constructor Description MavenXpp3Reader()
MavenXpp3Reader(MavenXpp3Reader.ContentTransformer contentTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAddDefaultEntities()
Returns the state of the "add default entities" flag.Model
read(java.io.InputStream in)
Method read.Model
read(java.io.InputStream in, boolean strict)
Method read.Model
read(java.io.Reader reader)
Model
read(java.io.Reader reader, boolean strict)
void
setAddDefaultEntities(boolean addDefaultEntities)
Sets the state of the "add default entities" flag.
-
-
-
Field Detail
-
contentTransformer
public final MavenXpp3Reader.ContentTransformer contentTransformer
Field contentTransformer.
-
-
Constructor Detail
-
MavenXpp3Reader
public MavenXpp3Reader()
-
MavenXpp3Reader
public MavenXpp3Reader(MavenXpp3Reader.ContentTransformer contentTransformer)
-
-
Method Detail
-
getAddDefaultEntities
public boolean getAddDefaultEntities()
Returns the state of the "add default entities" flag.- Returns:
- boolean
-
read
public Model read(java.io.Reader reader, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Parameters:
reader
- a reader object.strict
- a strict object.- Returns:
- Model
- Throws:
java.io.IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.- See Also:
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Model read(java.io.Reader reader) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Parameters:
reader
- a reader object.- Returns:
- Model
- Throws:
java.io.IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.- See Also:
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Model read(java.io.InputStream in, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.- Parameters:
in
- a in object.strict
- a strict object.- Returns:
- Model
- Throws:
java.io.IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
read
public Model read(java.io.InputStream in) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.- Parameters:
in
- a in object.- Returns:
- Model
- Throws:
java.io.IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
setAddDefaultEntities
public void setAddDefaultEntities(boolean addDefaultEntities)
Sets the state of the "add default entities" flag.- Parameters:
addDefaultEntities
- a addDefaultEntities object.
-
-