Class DefaultToolchainsReader
java.lang.Object
org.apache.maven.toolchain.io.DefaultToolchainsReader
- All Implemented Interfaces:
ToolchainsReader
@Named
@Singleton
@Deprecated(since="4.0.0")
public class DefaultToolchainsReader
extends Object
implements ToolchainsReader
Deprecated.
Handles deserialization of toolchains from the default textual format.
- Since:
- 3.3.0
-
Field Summary
Fields inherited from interface ToolchainsReader
IS_STRICT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.toolchain.model.PersistedToolchainsDeprecated.Reads the toolchains from the specified file.org.apache.maven.toolchain.model.PersistedToolchainsread(InputStream input, Map<String, ?> options) Deprecated.Reads the toolchains from the specified byte stream.org.apache.maven.toolchain.model.PersistedToolchainsDeprecated.Reads the toolchains from the specified character reader.
-
Constructor Details
-
DefaultToolchainsReader
public DefaultToolchainsReader()Deprecated.
-
-
Method Details
-
read
public org.apache.maven.toolchain.model.PersistedToolchains read(File input, Map<String, ?> options) throws IOExceptionDeprecated.Description copied from interface:ToolchainsReaderReads the toolchains from the specified file.- Specified by:
readin interfaceToolchainsReader- Parameters:
input- The file to deserialize the toolchains from, must not benull.options- The options to use for deserialization, may benullto use the default values.- Returns:
- The deserialized toolchains, never
null. - Throws:
IOException- If the toolchains could not be deserialized.
-
read
public org.apache.maven.toolchain.model.PersistedToolchains read(Reader input, Map<String, ?> options) throws IOExceptionDeprecated.Description copied from interface:ToolchainsReaderReads the toolchains from the specified character reader. The reader will be automatically closed before the method returns.- Specified by:
readin interfaceToolchainsReader- Parameters:
input- The reader to deserialize the toolchains from, must not benull.options- The options to use for deserialization, may benullto use the default values.- Returns:
- The deserialized toolchains, never
null. - Throws:
IOException- If the toolchains could not be deserialized.
-
read
public org.apache.maven.toolchain.model.PersistedToolchains read(InputStream input, Map<String, ?> options) throws IOExceptionDeprecated.Description copied from interface:ToolchainsReaderReads the toolchains from the specified byte stream. The stream will be automatically closed before the method returns.- Specified by:
readin interfaceToolchainsReader- Parameters:
input- The stream to deserialize the toolchains from, must not benull.options- The options to use for deserialization, may benullto use the default values.- Returns:
- The deserialized toolchains, never
null. - Throws:
IOException- If the toolchains could not be deserialized.
-
MavenToolchainsStaxReaderinstead