public abstract class AbstractDataWriter extends IOCapabilitiesStorage implements DataWriter
Constructor and Description |
---|
AbstractDataWriter(java.lang.String mimeType)
Initializes a new writer with MIME type information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMimeType()
Returns the MIME type.
|
<T> T |
getSetting(java.lang.String key)
Returns the setting for the specified key.
|
protected <T> void |
setDefault(java.lang.String key,
T value)
Defines a default value for the setting with the specified key.
|
<T> void |
setSetting(java.lang.String key,
T value)
Sets the setting for the specified key.
|
addCapabilities, getCapabilities
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public AbstractDataWriter(java.lang.String mimeType)
mimeType
- MIME typepublic java.lang.String getMimeType()
public <T> T getSetting(java.lang.String key)
getSetting
in interface DataWriter
T
- return typekey
- key of the settingpublic <T> void setSetting(java.lang.String key, T value)
setSetting
in interface DataWriter
T
- value typekey
- key of the settingvalue
- value of the settingprotected <T> void setDefault(java.lang.String key, T value)
T
- Data type of valuekey
- Setting keyvalue
- Default value