de.erichseifert.gral.io.data
Interface DataWriter

All Known Implementing Classes:
AbstractDataWriter, CSVWriter, ImageWriter

public interface DataWriter

Interface that provides a function to store a DataSource.


Method Summary
<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 DataSource
 

Method Detail

write

void write(DataSource data,
           OutputStream output)
           throws IOException
Stores the specified DataSource

Parameters:
data - DataSource to be stored.
output - OutputStream to be written to.
Throws:
IOException - if writing the data failed

getSetting

<T> T getSetting(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(String key,
                    T value)
Sets the setting for the specified key.

Type Parameters:
T - value type
Parameters:
key - key of the setting
value - value of the setting


Copyright © 2009-2010. All Rights Reserved.