public abstract class AbstractDataWriter extends IOCapabilitiesStorage implements DataWriter
Constructor and Description |
---|
AbstractDataWriter(String mimeType)
Initializes a new writer with MIME type information.
|
Modifier and Type | Method and Description |
---|---|
String |
getMimeType()
Returns the MIME type.
|
<T> T |
getSetting(String key)
Returns the setting for the specified key.
|
protected <T> void |
setDefault(String key,
T value)
Defines a default value for the setting with the specified key.
|
<T> void |
setSetting(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(String mimeType)
mimeType
- MIME typepublic String getMimeType()
public <T> T getSetting(String key)
getSetting
in interface DataWriter
T
- return typekey
- key of the settingpublic <T> void setSetting(String key, T value)
setSetting
in interface DataWriter
T
- value typekey
- key of the settingvalue
- value of the settingprotected <T> void setDefault(String key, T value)
T
- Data type of valuekey
- Setting keyvalue
- Default valueCopyright © 2009-2013. All Rights Reserved.