public interface DataWriter
Modifier and Type | Method and Description |
---|---|
<T> T |
getSetting(java.lang.String key)
Returns the setting for the specified key.
|
<T> void |
setSetting(java.lang.String key,
T value)
Sets the setting for the specified key.
|
void |
write(DataSource data,
java.io.OutputStream output)
Stores the specified data source.
|
void write(DataSource data, java.io.OutputStream output) throws java.io.IOException
data
- DataSource to be stored.output
- OutputStream to be written to.java.io.IOException
- if writing the data failed<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