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