@Named @Singleton public class DefaultToolchainsReader extends Object implements ToolchainsReader
IS_STRICT| Constructor and Description |
|---|
DefaultToolchainsReader() |
| Modifier and Type | Method and 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.
|
public PersistedToolchains read(File input, Map<String,?> options) throws IOException
ToolchainsReaderread in interface ToolchainsReaderinput - 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.null.IOException - If the toolchains could not be deserialized.ToolchainsParseException - If the input format could not be parsed.public PersistedToolchains read(Reader input, Map<String,?> options) throws IOException
ToolchainsReaderread in interface ToolchainsReaderinput - 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.null.IOException - If the toolchains could not be deserialized.ToolchainsParseException - If the input format could not be parsed.public PersistedToolchains read(InputStream input, Map<String,?> options) throws IOException
ToolchainsReaderread in interface ToolchainsReaderinput - 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.null.IOException - If the toolchains could not be deserialized.ToolchainsParseException - If the input format could not be parsed.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.