@Component(role=ModelReader.class) public class DefaultModelReader extends java.lang.Object implements ModelReader
INPUT_SOURCE, IS_STRICT| Constructor and Description |
|---|
DefaultModelReader() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.model.Model |
read(java.io.File input,
java.util.Map<java.lang.String,?> options)
Reads the model from the specified file.
|
org.apache.maven.model.Model |
read(java.io.InputStream input,
java.util.Map<java.lang.String,?> options)
Reads the model from the specified byte stream.
|
org.apache.maven.model.Model |
read(java.io.Reader input,
java.util.Map<java.lang.String,?> options)
Reads the model from the specified character reader.
|
public org.apache.maven.model.Model read(java.io.File input,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException
ModelReaderread in interface ModelReaderinput - The file to deserialize the model from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.public org.apache.maven.model.Model read(java.io.Reader input,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException
ModelReaderread in interface ModelReaderinput - The reader to deserialize the model from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.public org.apache.maven.model.Model read(java.io.InputStream input,
java.util.Map<java.lang.String,?> options)
throws java.io.IOException
ModelReaderread in interface ModelReaderinput - The stream to deserialize the model from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.java.io.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.