javax.sound.sampled.spi
public abstract class AudioFileReader extends Object
Constructor and Description |
---|
AudioFileReader()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AudioFileReader()
public abstract AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException
file
- the file to examineUnsupportedAudioFileException
- if the file's format is not
recognizedIOException
- if there is an I/O error while reading the filepublic abstract AudioFileFormat getAudioFileFormat(InputStream is) throws UnsupportedAudioFileException, IOException
is
- the stream to examineUnsupportedAudioFileException
- if the stream's format is not
recognizedIOException
- if there is an I/O error while reading the streampublic abstract AudioFileFormat getAudioFileFormat(URL url) throws UnsupportedAudioFileException, IOException
url
- the URL to examineUnsupportedAudioFileException
- if the URL's format is not
recognizedIOException
- if there is an I/O error while reading the URLpublic abstract AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException
file
- the file to readUnsupportedAudioFileException
- if the file's type is not
recognizedIOException
- if there is an error while reading the filepublic abstract AudioInputStream getAudioInputStream(InputStream is) throws UnsupportedAudioFileException, IOException
is
- the input stream to wrapUnsupportedAudioFileException
- if the stream's type is not
recognizedIOException
- if there is an error while reading the streampublic abstract AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException
url
- the URL to readUnsupportedAudioFileException
- if the URL's type is not
recognizedIOException
- if there is an error while reading the URL