public final 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.
Example usage:
DataReaderFactory factory = DataReaderFactory.getInstance(); DataReader reader = factory.get("text/csv"); DataSource = reader.read(new FileInputStream(filename), Double.class);
Modifier and Type | Method and Description |
---|---|
DataReader |
get(java.lang.String mimeType)
Returns an object for reading or writing the specified format.
|
static DataReaderFactory |
getInstance()
Returns the instance of the factory.
|
getCapabilities, getCapabilities, getSupportedFormats, getTypeClass, isFormatSupported
public static DataReaderFactory getInstance()
public DataReader get(java.lang.String mimeType)
AbstractIOFactory
get
in interface IOFactory<DataReader>
get
in class AbstractIOFactory<DataReader>
mimeType
- MIME type.