de.erichseifert.gral.io
Class AbstractIOFactory<T>
- java.lang.Object
-
- de.erichseifert.gral.io.AbstractIOFactory<T>
-
- Type Parameters:
T- The type of objects which should be produced by this factory
- All Implemented Interfaces:
- IOFactory<T>
- Direct Known Subclasses:
- DataReaderFactory, DataWriterFactory, DrawableWriterFactory
public abstract class AbstractIOFactory<T> extends java.lang.Object implements IOFactory<T>
Abstract implementation ofIOFactorywhich provides basic functionality.
-
-
Method Summary
All Methods Instance Methods Concrete 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
-
getCapabilities
public IOCapabilities getCapabilities(java.lang.String mimeType)
Returns the capabilities for a specific format.- Specified by:
getCapabilitiesin interfaceIOFactory<T>- Parameters:
mimeType- MIME type of the format- Returns:
- Capabilities for the specified format.
-
getCapabilities
public java.util.List<IOCapabilities> getCapabilities()
Returns a list of capabilities for all supported formats.- Specified by:
getCapabilitiesin interfaceIOFactory<T>- Returns:
- Supported capabilities.
-
getSupportedFormats
public java.lang.String[] getSupportedFormats()
Returns an array of Strings containing all supported formats.- Specified by:
getSupportedFormatsin interfaceIOFactory<T>- Returns:
- Supported formats.
-
isFormatSupported
public boolean isFormatSupported(java.lang.String mimeType)
Returns whether the specified MIME type is supported.- Specified by:
isFormatSupportedin interfaceIOFactory<T>- Parameters:
mimeType- MIME type.- Returns:
trueif supported, otherwisefalse.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG