javax.sound.sampled.spi
public abstract class AudioFileReader extends Object
Since: 1.3
Constructor Summary | |
---|---|
AudioFileReader()
The default constructor. |
Method Summary | |
---|---|
abstract AudioFileFormat | getAudioFileFormat(File file)
Return the format of the given file as deduced by this provider.
|
abstract AudioFileFormat | getAudioFileFormat(InputStream is)
Return the format of the given input stream as deduced by this provider.
|
abstract AudioFileFormat | getAudioFileFormat(URL url)
Return the format of the given URL as deduced by this provider.
|
abstract AudioInputStream | getAudioInputStream(File file)
Return an AudioInputStream for the given file. |
abstract AudioInputStream | getAudioInputStream(InputStream is)
Return an AudioInputStream wrapping the given input stream. |
abstract AudioInputStream | getAudioInputStream(URL url)
Return an AudioInputStream for the given URL. |
Parameters: file the file to examine
Returns: the audio file format
Throws: UnsupportedAudioFileException if the file's format is not recognized IOException if there is an I/O error while reading the file
Parameters: is the stream to examine
Returns: the audio file format
Throws: UnsupportedAudioFileException if the stream's format is not recognized IOException if there is an I/O error while reading the stream
Parameters: url the URL to examine
Returns: the audio file format
Throws: UnsupportedAudioFileException if the URL's format is not recognized IOException if there is an I/O error while reading the URL
Parameters: file the file to read
Returns: an AudioInputStream for the file
Throws: UnsupportedAudioFileException if the file's type is not recognized IOException if there is an error while reading the file
Parameters: is the input stream to wrap
Returns: an AudioInputStream for the stream
Throws: UnsupportedAudioFileException if the stream's type is not recognized IOException if there is an error while reading the stream
Parameters: url the URL to read
Returns: an AudioInputStream for the URL
Throws: UnsupportedAudioFileException if the URL's type is not recognized IOException if there is an error while reading the URL