@Named @Singleton public class DefaultToolchainsReader extends java.lang.Object implements ToolchainsReader
IS_STRICT
Constructor and Description |
---|
DefaultToolchainsReader() |
Modifier and Type | Method and Description |
---|---|
private boolean |
isStrict(java.util.Map<java.lang.String,?> options) |
PersistedToolchains |
read(java.io.File input,
java.util.Map<java.lang.String,?> options)
Reads the toolchains from the specified file.
|
PersistedToolchains |
read(java.io.InputStream input,
java.util.Map<java.lang.String,?> options)
Reads the toolchains from the specified byte stream.
|
PersistedToolchains |
read(java.io.Reader input,
java.util.Map<java.lang.String,?> options)
Reads the toolchains from the specified character reader.
|
public PersistedToolchains read(java.io.File input, java.util.Map<java.lang.String,?> options) throws java.io.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
.java.io.IOException
- If the toolchains could not be deserialized.ToolchainsParseException
- If the input format could not be parsed.public PersistedToolchains read(java.io.Reader input, java.util.Map<java.lang.String,?> options) throws java.io.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
.java.io.IOException
- If the toolchains could not be deserialized.ToolchainsParseException
- If the input format could not be parsed.public PersistedToolchains read(java.io.InputStream input, java.util.Map<java.lang.String,?> options) throws java.io.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
.java.io.IOException
- If the toolchains could not be deserialized.ToolchainsParseException
- If the input format could not be parsed.private boolean isStrict(java.util.Map<java.lang.String,?> options)