|
||||||||||
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.AbstractDataReader
public abstract class AbstractDataReader
Base implementation for classes that read data sources from input streams.
Constructor Summary | |
---|---|
AbstractDataReader(String mimeType)
Initializes a new reader 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.DataReader |
---|
read |
Constructor Detail |
---|
public AbstractDataReader(String mimeType)
mimeType
- MIME typeMethod Detail |
---|
public String getMimeType()
public <T> T getSetting(String key)
DataReader
getSetting
in interface DataReader
T
- return typekey
- key of the setting
public <T> void setSetting(String key, T value)
DataReader
setSetting
in interface DataReader
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 |