de.erichseifert.gral.io.data
Interface DataWriter
-
- All Known Implementing Classes:
- AbstractDataWriter, CSVWriter, ImageWriter
public interface DataWriterInterface that provides a function to store a data source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description <T> TgetSetting(java.lang.String key)Returns the setting for the specified key.<T> voidsetSetting(java.lang.String key, T value)Sets the setting for the specified key.voidwrite(DataSource data, java.io.OutputStream output)Stores the specified data source.
-
-
-
Method Detail
-
write
void write(DataSource data, java.io.OutputStream output) throws java.io.IOException
Stores the specified data source.- Parameters:
data- DataSource to be stored.output- OutputStream to be written to.- Throws:
java.io.IOException- if writing the data failed
-
getSetting
<T> T getSetting(java.lang.String key)
Returns the setting for the specified key.- Type Parameters:
T- return type- Parameters:
key- key of the setting- Returns:
- the value of the setting
-
setSetting
<T> void setSetting(java.lang.String key, T value)Sets the setting for the specified key.- Type Parameters:
T- value type- Parameters:
key- key of the settingvalue- value of the setting
-
-
DataMelt 3.0 © DataMelt by jWork.ORG