Package org.apache.maven.model.io
Class DefaultModelReader
java.lang.Object
org.apache.maven.model.io.DefaultModelReader
- All Implemented Interfaces:
ModelReader
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultModelReader
extends Object
implements ModelReader
Deprecated.
Handles deserialization of a model from some kind of textual format like XML.
-
Field Summary
Fields inherited from interface org.apache.maven.model.io.ModelReader
INPUT_SOURCE, IS_STRICT, ROOT_DIRECTORY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Reads the model from the specified file.read
(InputStream input, Map<String, ?> options) Deprecated.Reads the model from the specified byte stream.Deprecated.Reads the model from the specified character reader.Deprecated.Reads the model from the specified file.
-
Constructor Details
-
DefaultModelReader
Deprecated.
-
-
Method Details
-
read
Deprecated.Description copied from interface:ModelReader
Reads the model from the specified file.- Specified by:
read
in interfaceModelReader
- Parameters:
input
- The file to deserialize the model from, must not benull
.options
- The options to use for deserialization, may benull
to use the default values.- Returns:
- The deserialized model, never
null
. - Throws:
IOException
- If the model could not be deserialized.
-
read
Deprecated.Description copied from interface:ModelReader
Reads the model from the specified file.- Specified by:
read
in interfaceModelReader
- Parameters:
path
- The file to deserialize the model from, must not benull
.options
- The options to use for deserialization, may benull
to use the default values.- Returns:
- The deserialized model, never
null
. - Throws:
IOException
- If the model could not be deserialized.
-
read
Deprecated.Description copied from interface:ModelReader
Reads the model from the specified character reader. The reader will be automatically closed before the method returns.- Specified by:
read
in interfaceModelReader
- Parameters:
input
- The reader to deserialize the model from, must not benull
.options
- The options to use for deserialization, may benull
to use the default values.- Returns:
- The deserialized model, never
null
. - Throws:
IOException
- If the model could not be deserialized.
-
read
Deprecated.Description copied from interface:ModelReader
Reads the model from the specified byte stream. The stream will be automatically closed before the method returns.- Specified by:
read
in interfaceModelReader
- Parameters:
input
- The stream to deserialize the model from, must not benull
.options
- The options to use for deserialization, may benull
to use the default values.- Returns:
- The deserialized model, never
null
. - Throws:
IOException
- If the model could not be deserialized.
-
XmlStreamWriter
instead