@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
ToolchainsReader
read
in interface ToolchainsReader
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.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
ToolchainsReader
read
in interface ToolchainsReader
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.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
ToolchainsReader
read
in interface ToolchainsReader
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.null
.IOException
- If the toolchains could not be deserialized.ToolchainsParseException
- If the input format could not be parsed.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.