Package org.apache.maven.model.io
Class DefaultModelReader
java.lang.Object
org.apache.maven.model.io.DefaultModelReader
- All Implemented Interfaces:
- ModelReader
Handles deserialization of a model from some kind of textual format like XML.
- 
Field SummaryFields inherited from interface org.apache.maven.model.io.ModelReaderINPUT_SOURCE, IS_STRICT, ROOT_DIRECTORY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReads the model from the specified file.read(InputStream input, Map<String, ?> options) Reads the model from the specified byte stream.Reads the model from the specified character reader.
- 
Constructor Details- 
DefaultModelReader
 
- 
- 
Method Details- 
readDescription copied from interface:ModelReaderReads the model from the specified file.- Specified by:
- readin interface- ModelReader
- Parameters:
- input- The file to deserialize the model from, must not be- null.
- options- The options to use for deserialization, may be- nullto use the default values.
- Returns:
- The deserialized model, never null.
- Throws:
- IOException- If the model could not be deserialized.
- ModelParseException- If the input format could not be parsed.
 
- 
readDescription copied from interface:ModelReaderReads the model from the specified character reader. The reader will be automatically closed before the method returns.- Specified by:
- readin interface- ModelReader
- Parameters:
- input- The reader to deserialize the model from, must not be- null.
- options- The options to use for deserialization, may be- nullto use the default values.
- Returns:
- The deserialized model, never null.
- Throws:
- IOException- If the model could not be deserialized.
- ModelParseException- If the input format could not be parsed.
 
- 
readDescription copied from interface:ModelReaderReads the model from the specified byte stream. The stream will be automatically closed before the method returns.- Specified by:
- readin interface- ModelReader
- Parameters:
- input- The stream to deserialize the model from, must not be- null.
- options- The options to use for deserialization, may be- nullto use the default values.
- Returns:
- The deserialized model, never null.
- Throws:
- IOException- If the model could not be deserialized.
- ModelParseException- If the input format could not be parsed.
 
 
-