de.erichseifert.gral.io
Interface IOFactory<T>
-
- Type Parameters:
T- Class of the objects produced by the factory.
- All Known Implementing Classes:
- AbstractIOFactory, DataReaderFactory, DataWriterFactory, DrawableWriterFactory
public interface IOFactory<T>Interface for factories producing input (reader) or output (writer) classes. This is be used to create a extensible plug-in system for reading or writing data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Tget(java.lang.String mimeType)Returns an object for reading or writing the specified format.java.util.List<IOCapabilities>getCapabilities()Returns a list of capabilities for all supported formats.IOCapabilitiesgetCapabilities(java.lang.String mimeType)Returns the capabilities for a specific format.java.lang.String[]getSupportedFormats()Returns an array of Strings containing all supported formats.booleanisFormatSupported(java.lang.String mimeType)Returns whether the specified MIME type is supported.
-
-
-
Method Detail
-
get
T get(java.lang.String mimeType)
Returns an object for reading or writing the specified format.- Parameters:
mimeType- MIME type.- Returns:
- Reader or writer for the specified MIME type.
-
getCapabilities
IOCapabilities getCapabilities(java.lang.String mimeType)
Returns the capabilities for a specific format.- Parameters:
mimeType- MIME type of the format- Returns:
- Capabilities for the specified format.
-
getCapabilities
java.util.List<IOCapabilities> getCapabilities()
Returns a list of capabilities for all supported formats.- Returns:
- Supported capabilities.
-
getSupportedFormats
java.lang.String[] getSupportedFormats()
Returns an array of Strings containing all supported formats.- Returns:
- Supported formats.
-
isFormatSupported
boolean isFormatSupported(java.lang.String mimeType)
Returns whether the specified MIME type is supported.- Parameters:
mimeType- MIME type.- Returns:
trueif supported, otherwisefalse.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG