public final class DrawableWriterFactory extends AbstractIOFactory<DrawableWriter>
Class that provides DrawableWriter
implementations for
different file formats.
Example Usage:
DrawableWriterFactory factory = DrawableWriterFactory.getInstance(); DrawableWriter writer = factory.get("application/pdf"); writer.write(plot, new FileOutputStream(filename));
DrawableWriter
Modifier and Type | Method and Description |
---|---|
DrawableWriter |
get(String mimeType)
Returns an object for reading or writing the specified format.
|
static DrawableWriterFactory |
getInstance()
Returns an instance of this DrawableWriterFactory.
|
getCapabilities, getCapabilities, getSupportedFormats, getTypeClass, isFormatSupported
public static DrawableWriterFactory getInstance()
public DrawableWriter get(String mimeType)
AbstractIOFactory
get
in interface IOFactory<DrawableWriter>
get
in class AbstractIOFactory<DrawableWriter>
mimeType
- MIME type.Copyright © 2009-2013. All Rights Reserved.