public final class DataWriterFactory extends AbstractIOFactory<DataWriter>
A factory class that produces DataWriter
instances for a
specified format. The produced writers can be used to output a
DataSource
to a data sink.
Example usage:
DataWriterFactory factory = DataWriterFactory.getInstance(); DataWriter writer = factory.get("image/png"); writer.write(data);
Modifier and Type | Method and Description |
---|---|
DataWriter |
get(String mimeType)
Returns an object for reading or writing the specified format.
|
static DataWriterFactory |
getInstance()
Returns the instance of the factory.
|
getCapabilities, getCapabilities, getSupportedFormats, getTypeClass, isFormatSupported
public static DataWriterFactory getInstance()
public DataWriter get(String mimeType)
AbstractIOFactory
get
in interface IOFactory<DataWriter>
get
in class AbstractIOFactory<DataWriter>
mimeType
- MIME type.Copyright © 2009-2013. All Rights Reserved.