public interface DataReader
Modifier and Type | Method and Description |
---|---|
<T> T |
getSetting(String key)
Returns the setting for the specified key.
|
DataSource |
read(InputStream input,
Class<? extends Comparable<?>>... types)
Returns a data source that contains the imported data.
|
<T> void |
setSetting(String key,
T value)
Sets the setting for the specified key.
|
DataSource read(InputStream input, Class<? extends Comparable<?>>... types) throws IOException
input
- Input to be read.types
- Types for the columns of the data source.IOException
- when the file format is not valid or when
experiencing an error during file operations.<T> T getSetting(String key)
T
- return typekey
- key of the setting<T> void setSetting(String key, T value)
T
- value typekey
- key of the settingvalue
- value of the settingCopyright © 2009-2013. All Rights Reserved.