|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.io.IOCapabilitiesStorage
de.erichseifert.gral.io.data.AbstractDataWriter
public abstract class AbstractDataWriter
Base implementation for classes that write data sources to output streams.
Constructor Summary | |
---|---|
AbstractDataWriter(String mimeType)
Initializes a new writer with MIME type information. |
Method Summary | ||
---|---|---|
String |
getMimeType()
Returns the MIME type. |
|
|
getSetting(String key)
Returns the setting for the specified key. |
|
|
setSetting(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 |
---|
public AbstractDataWriter(String mimeType)
mimeType
- MIME typeMethod Detail |
---|
public String getMimeType()
public <T> T getSetting(String key)
DataWriter
getSetting
in interface DataWriter
T
- return typekey
- key of the setting
public <T> void setSetting(String key, T value)
DataWriter
setSetting
in interface DataWriter
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 |