@Named @Singleton public class DefaultModelReader extends Object implements ModelReader
INPUT_SOURCE, IS_STRICT, TRANSFORMER_CONTEXT| Constructor and Description | 
|---|
| DefaultModelReader(ModelSourceTransformer transformer) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.maven.api.model.Model | read(File input,
    Map<String,?> options)Reads the model from the specified file. | 
| org.apache.maven.api.model.Model | read(InputStream input,
    Map<String,?> options)Reads the model from the specified byte stream. | 
| org.apache.maven.api.model.Model | read(Reader input,
    Map<String,?> options)Reads the model from the specified character reader. | 
@Inject public DefaultModelReader(ModelSourceTransformer transformer)
public org.apache.maven.api.model.Model read(File input, Map<String,?> options) throws 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.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.public org.apache.maven.api.model.Model read(Reader input, Map<String,?> options) throws 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.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.public org.apache.maven.api.model.Model read(InputStream input, Map<String,?> options) throws 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.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.