de.erichseifert.gral.io.data
Class DataReaderFactory

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

public class DataReaderFactory
extends AbstractIOFactory<DataReader>

A factory class that produces DataReader instances for a specified format. The produced readers can be used to retrieve data from an InputStream and to get a DataSource instance.


Method Summary
 DataReader get(String mimeType)
          Returns an object for reading or writing the specified format.
static DataReaderFactory 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 DataReaderFactory getInstance()
Returns the instance of the factory.

Returns:
Instance of the factory.

get

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