de.erichseifert.gral.io.data
Class ImageReader
java.lang.Object
de.erichseifert.gral.io.IOCapabilitiesStorage
de.erichseifert.gral.io.data.AbstractDataReader
de.erichseifert.gral.io.data.ImageReader
- All Implemented Interfaces:
- DataReader
public class ImageReader
- extends AbstractDataReader
Class that reads a DataSource from a binary image file.
Constructor Summary |
ImageReader(String mimeType)
Creates a new instance with the specified MIME type. |
ImageReader
public ImageReader(String mimeType)
- Creates a new instance with the specified MIME type.
- Parameters:
mimeType
- MIME type of the file format to be read.
read
public DataSource read(InputStream input,
Class<? extends Number>... types)
throws IOException,
ParseException
- Description copied from interface:
DataReader
- Returns a DataSource that was imported.
- Parameters:
input
- Input to be read.types
- Number types for the columns of the DataSource.
- Returns:
- DataSource Imported data.
- Throws:
IOException
- when experiencing an error during file operations.
ParseException
- when the file format is not valid.
Copyright © 2009-2010. All Rights Reserved.