de.erichseifert.gral.io.data
Class AbstractDataWriter
- java.lang.Object
-
- de.erichseifert.gral.io.IOCapabilitiesStorage
-
- de.erichseifert.gral.io.data.AbstractDataWriter
-
- All Implemented Interfaces:
- DataWriter
- Direct Known Subclasses:
- CSVWriter, ImageWriter
public abstract class AbstractDataWriter extends IOCapabilitiesStorage implements DataWriter
Base implementation for classes that write data sources to output streams.
-
-
Constructor Summary
Constructors Constructor and Description AbstractDataWriter(java.lang.String mimeType)Initializes a new writer with MIME type information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetMimeType()Returns the MIME type.<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.-
Methods inherited from class de.erichseifert.gral.io.IOCapabilitiesStorage
getCapabilities
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.erichseifert.gral.io.data.DataWriter
write
-
-
-
-
Constructor Detail
-
AbstractDataWriter
public AbstractDataWriter(java.lang.String mimeType)
Initializes a new writer with MIME type information.- Parameters:
mimeType- MIME type
-
-
Method Detail
-
getMimeType
public java.lang.String getMimeType()
Returns the MIME type.- Returns:
- MIME type string.
-
getSetting
public <T> T getSetting(java.lang.String key)
Returns the setting for the specified key.- Specified by:
getSettingin interfaceDataWriter- Type Parameters:
T- return type- Parameters:
key- key of the setting- Returns:
- the value of the setting
-
setSetting
public <T> void setSetting(java.lang.String key, T value)Sets the setting for the specified key.- Specified by:
setSettingin interfaceDataWriter- Type Parameters:
T- value type- Parameters:
key- key of the settingvalue- value of the setting
-
-
DataMelt 3.0 © DataMelt by jWork.ORG