de.erichseifert.gral.io.data
Class AudioReader
- java.lang.Object
-
- de.erichseifert.gral.io.IOCapabilitiesStorage
-
- de.erichseifert.gral.io.data.AbstractDataReader
-
- de.erichseifert.gral.io.data.AudioReader
-
- All Implemented Interfaces:
- DataReader
public class AudioReader extends AbstractDataReader
Class that reads a data source from a binary image file. This class shouldn't be used directly but using theDataReaderFactory.
-
-
Constructor Summary
Constructors Constructor and Description AudioReader(java.lang.String mimeType)Creates a new instance with the specified MIME type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataSourceread(java.io.InputStream input, java.lang.Class<? extends java.lang.Comparable<?>>... types)Returns a data source that was imported.-
Methods inherited from class de.erichseifert.gral.io.data.AbstractDataReader
getMimeType, getSetting, setSetting
-
Methods inherited from class de.erichseifert.gral.io.IOCapabilitiesStorage
getCapabilities
-
-
-
-
Constructor Detail
-
AudioReader
public AudioReader(java.lang.String mimeType)
Creates a new instance with the specified MIME type.- Parameters:
mimeType- MIME type of the file format to be read.
-
-
Method Detail
-
read
public DataSource read(java.io.InputStream input, java.lang.Class<? extends java.lang.Comparable<?>>... types) throws java.io.IOException
Returns a data source that was imported.- Parameters:
input- Input to be read.types- Number types for the columns of the data source.- Returns:
- DataSource Imported data.
- Throws:
java.io.IOException- when the file format is not valid or when experiencing an error during file operations.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG