public interface FileLoader
LoadedData
object from a file.Modifier and Type | Method and Description |
---|---|
default void |
checkOptions(Map<String,Object> options)
Checks that a set of options is valid for this file loader.
|
default List<OptionDefinition> |
getOptionDefinitions() |
default LoadedData |
readFile(File file)
Reads a file without any specified options.
|
LoadedData |
readFile(File file,
Map<String,Object> options)
Read a file using a specified set of options.
|
LoadedData readFile(File file, Map<String,Object> options)
getOptionDefinitions()
.file
- the file to readoptions
- file reading optionsdefault LoadedData readFile(File file)
file
- the file to readdefault List<OptionDefinition> getOptionDefinitions()
default void checkOptions(Map<String,Object> options)
IllegalArgumentException
is thrown.
Additionally, the default values of the options are checked. If any of
them is of the wrong class, an IllegalStateException
is thrown.options
- the options to checkCopyright © 2022. All rights reserved.