Interface ModelReader
- All Known Subinterfaces:
ModelProcessor
- All Known Implementing Classes:
DefaultModelProcessor, DefaultModelReader
Deprecated.
Handles deserialization of a model from some kind of textual format like XML.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.model.ModelDeprecated.Reads the model from the specified file.org.apache.maven.model.Modelread(InputStream input, Map<String, ?> options) Deprecated.Reads the model from the specified byte stream.org.apache.maven.model.ModelDeprecated.Reads the model from the specified character reader.
-
Field Details
-
IS_STRICT
-
INPUT_SOURCE
Deprecated.The key for the option to enable tracking of line/column numbers. This option is of typeInputSourceand defaults tonull. Providing an input source enables location tracking.- See Also:
-
-
Method Details
-
read
org.apache.maven.model.Model read(File input, Map<String, ?> options) throws IOException, ModelParseExceptionDeprecated.Reads the model from the specified file.- Parameters:
input- The file to deserialize the model from, must not benull.options- The options to use for deserialization, may benullto 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.
-
read
org.apache.maven.model.Model read(Reader input, Map<String, ?> options) throws IOException, ModelParseExceptionDeprecated.Reads the model from the specified character reader. The reader will be automatically closed before the method returns.- Parameters:
input- The reader to deserialize the model from, must not benull.options- The options to use for deserialization, may benullto 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.
-
read
org.apache.maven.model.Model read(InputStream input, Map<String, ?> options) throws IOException, ModelParseExceptionDeprecated.Reads the model from the specified byte stream. The stream will be automatically closed before the method returns.- Parameters:
input- The stream to deserialize the model from, must not benull.options- The options to use for deserialization, may benullto 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.
-
org.apache.maven.api.services.xml.ModelXmlFactoryinstead