Klasse IOCapabilitiesStorage
java.lang.Object
de.erichseifert.gral.io.IOCapabilitiesStorage
- Bekannte direkte Unterklassen:
AbstractDataReader, AbstractDataWriter, BitmapWriter, VectorWriter
Base class of every reader and writer, and the registry of what formats exist. An implementation announces the formats it handles from a static initializer:
static {
addCapabilities(new IOCapabilities(
"CSV", "Comma separated values", "text/csv",
new String[] {"csv", "txt"}));
}
The registry is static and shared by all readers and writers, so
getCapabilities() only reports the formats whose classes have
already been loaded. That is why an IOFactory calls this method
reflectively on each class it knows about, rather than reading the set
directly.
-
Konstruktorübersicht
KonstruktorenModifikatorKonstruktorBeschreibungprotectedInitializes a new storage instance. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected static voidaddCapabilities(IOCapabilities capabilities) Adds the specified capabilities to the Set of supported formats.static Set<IOCapabilities> Returns aSetwith capabilities for all supported formats.
-
Konstruktordetails
-
IOCapabilitiesStorage
protected IOCapabilitiesStorage()Initializes a new storage instance.
-
-
Methodendetails
-
getCapabilities
Returns aSetwith capabilities for all supported formats.- Gibt zurück:
- Capabilities.
-
addCapabilities
Adds the specified capabilities to the Set of supported formats.- Parameter:
capabilities- Capabilities to be added.
-