de.erichseifert.gral.io.data
Class DataWriterFactory

java.lang.Object
  extended by de.erichseifert.gral.io.AbstractIOFactory<DataWriter>
      extended by de.erichseifert.gral.io.data.DataWriterFactory
All Implemented Interfaces:
IOFactory<DataWriter>

public 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.


Method Summary
 DataWriter get(String mimeType)
          Returns an object for reading or writing the specified format.
static DataWriterFactory getInstance()
          Returns the instance of the factory.
 
Methods inherited from class de.erichseifert.gral.io.AbstractIOFactory
getCapabilities, getCapabilities, getSupportedFormats, isFormatSupported
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DataWriterFactory getInstance()
Returns the instance of the factory.

Returns:
Instance of the factory.

get

public DataWriter get(String mimeType)
Description copied from interface: IOFactory
Returns an object for reading or writing the specified format.

Parameters:
mimeType - MIME type.
Returns:
Reader or writer for the specified MIME type.


Copyright © 2009-2010. All Rights Reserved.