DefaultToolchainsReader (Maven Core 3.9.16 API) JavaScript is disabled on your browser.     Skip navigation links Overview Class Use Tree Deprecated Index Search Help org.apache.maven.toolchain.io DefaultToolchainsReader Contents  Description Field Summary Constructor Summary Method Summary Constructor Details DefaultToolchainsReader() Method Details read(File, Map) read(Reader, Map) read(InputStream, Map) Hide sidebar  Show sidebar Class DefaultToolchainsReader java.lang.Object org.apache.maven.toolchain.io.DefaultToolchainsReader All Implemented Interfaces: ToolchainsReader @Named @Singleton public class DefaultToolchainsReader extends Object implements ToolchainsReader Handles deserialization of toolchains from the default textual format. Since: 3.3.0 Author: Robert Scholte Field Summary Fields inherited from interface ToolchainsReader IS_STRICT Constructor Summary Constructors Constructor Description DefaultToolchainsReader()   Method Summary All MethodsInstance MethodsConcrete Methods Modifier and Type Method Description PersistedToolchains read(File input, Map<String,?> options) Reads the toolchains from the specified file. PersistedToolchains read(InputStream input, Map<String,?> options) Reads the toolchains from the specified byte stream. PersistedToolchains read(Reader input, Map<String,?> options) Reads the toolchains from the specified character reader. Methods inherited from class Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Constructor Details DefaultToolchainsReader public DefaultToolchainsReader() Method Details read public PersistedToolchains read(File input, Map<String,?> options) throws IOException Description copied from interface: ToolchainsReader Reads the toolchains from the specified file. Specified by: read in interface ToolchainsReader Parameters: input - The file to deserialize the toolchains from, must not be null. options - The options to use for deserialization, may be null to use the default values. Returns: The deserialized toolchains, never null. Throws: IOException - If the toolchains could not be deserialized. read public PersistedToolchains read(Reader input, Map<String,?> options) throws IOException Description copied from interface: ToolchainsReader Reads the toolchains from the specified character reader. The reader will be automatically closed before the method returns. Specified by: read in interface ToolchainsReader Parameters: input - The reader to deserialize the toolchains from, must not be null. options - The options to use for deserialization, may be null to use the default values. Returns: The deserialized toolchains, never null. Throws: IOException - If the toolchains could not be deserialized. read public PersistedToolchains read(InputStream input, Map<String,?> options) throws IOException Description copied from interface: ToolchainsReader Reads the toolchains from the specified byte stream. The stream will be automatically closed before the method returns. Specified by: read in interface ToolchainsReader Parameters: input - The stream to deserialize the toolchains from, must not be null. options - The options to use for deserialization, may be null to use the default values. Returns: The deserialized toolchains, never null. Throws: IOException - If the toolchains could not be deserialized. Copyright © 2001–2026 The Apache Software Foundation. All rights reserved.