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