|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataWriter
Interface that provides a function to store a DataSource.
Method Summary | ||
---|---|---|
|
getSetting(String key)
Returns the setting for the specified key. |
|
|
setSetting(String key,
T value)
Sets the setting for the specified key. |
|
void |
write(DataSource data,
OutputStream output)
Stores the specified DataSource |
Method Detail |
---|
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 setting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |