public class ImageReader extends AbstractDataReader
DataReaderFactory
.Constructor and Description |
---|
ImageReader(java.lang.String mimeType)
Creates a new instance with the specified MIME type.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
read(java.io.InputStream input,
java.lang.Class<? extends java.lang.Comparable<?>>... types)
Returns a data source that was imported.
|
getMimeType, getSetting, setDefault, setSetting
addCapabilities, getCapabilities
public ImageReader(java.lang.String mimeType)
mimeType
- MIME type of the file format to be read.public DataSource read(java.io.InputStream input, java.lang.Class<? extends java.lang.Comparable<?>>... types) throws java.io.IOException
input
- Input to be read.types
- Number types for the columns of the data source.java.io.IOException
- when the file format is not valid or when
experiencing an error during file operations.