de.erichseifert.gral.io.data
Class DataWriterFactory
- java.lang.Object
-
- de.erichseifert.gral.io.AbstractIOFactory<DataWriter>
-
- de.erichseifert.gral.io.data.DataWriterFactory
-
- All Implemented Interfaces:
- IOFactory<DataWriter>
public final class DataWriterFactory extends AbstractIOFactory<DataWriter>
A factory class that produces
DataWriterinstances for a specified format. The produced writers can be used to output aDataSourceto a data sink.Example usage:
DataWriterFactory factory = DataWriterFactory.getInstance(); DataWriter writer = factory.get("image/png"); writer.write(data);
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataWriterget(java.lang.String mimeType)Returns an object for reading or writing the specified format.static DataWriterFactorygetInstance()Returns the instance of the factory.-
Methods inherited from class de.erichseifert.gral.io.AbstractIOFactory
getCapabilities, getCapabilities, getSupportedFormats, isFormatSupported
-
-
-
-
Method Detail
-
getInstance
public static DataWriterFactory getInstance()
Returns the instance of the factory.- Returns:
- Instance of the factory.
-
get
public DataWriter get(java.lang.String mimeType)
Description copied from class:AbstractIOFactoryReturns an object for reading or writing the specified format.- Specified by:
getin interfaceIOFactory<DataWriter>- Overrides:
getin classAbstractIOFactory<DataWriter>- Parameters:
mimeType- MIME type.- Returns:
- Reader or writer for the specified MIME type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG