Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.sound.sampled.spi.AudioFileReader
gnu.javax.sound.sampled.AU.AUReader
public class AUReader
extends AudioFileReader
Nested Class Summary | |
static class |
Method Summary | |
AudioFileFormat |
|
AudioFileFormat |
|
AudioFileFormat |
|
AudioInputStream |
|
AudioInputStream |
|
AudioInputStream |
|
Methods inherited from class javax.sound.sampled.spi.AudioFileReader | |
getAudioFileFormat , getAudioFileFormat , getAudioFileFormat , getAudioInputStream , getAudioInputStream , getAudioInputStream |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public AudioFileFormat getAudioFileFormat(File file) throws IOException, UnsupportedAudioFileException
Return the format of the given file as deduced by this provider. If the format of the file is not recognized, throws an exception. This will also throw an exception if there is an I/O error when reading the file.
- Overrides:
- getAudioFileFormat in interface AudioFileReader
- Parameters:
file
- the file to examine
- Returns:
- the audio file format
- Throws:
UnsupportedAudioFileException
- if the file's format is not recognizedIOException
- if there is an I/O error while reading the file
public AudioFileFormat getAudioFileFormat(InputStream stream) throws IOException, UnsupportedAudioFileException
Return the format of the given input stream as deduced by this provider. If the format of the stream is not recognized, throws an exception. This will also throw an exception if there is an I/O error when reading the stream. Note that providers typically use mark and reset on the stream when examining the data, and as a result an IOException may be thrown if the stream does not support these.
- Overrides:
- getAudioFileFormat in interface AudioFileReader
- Parameters:
- Returns:
- the audio file format
- Throws:
UnsupportedAudioFileException
- if the stream's format is not recognizedIOException
- if there is an I/O error while reading the stream
public AudioFileFormat getAudioFileFormat(URL url) throws IOException, UnsupportedAudioFileException
Return the format of the given URL as deduced by this provider. If the format of the URL is not recognized, throws an exception. This will also throw an exception if there is an I/O error when reading the URL.
- Overrides:
- getAudioFileFormat in interface AudioFileReader
- Parameters:
url
- the URL to examine
- Returns:
- the audio file format
- Throws:
UnsupportedAudioFileException
- if the URL's format is not recognizedIOException
- if there is an I/O error while reading the URL
public AudioInputStream getAudioInputStream(File file) throws IOException, UnsupportedAudioFileException
Return an AudioInputStream for the given file. The file is assumed to hold valid audio data.
- Overrides:
- getAudioInputStream in interface AudioFileReader
- Parameters:
file
- the file to read
- Returns:
- an AudioInputStream for the file
- Throws:
UnsupportedAudioFileException
- if the file's type is not recognizedIOException
- if there is an error while reading the file
public AudioInputStream getAudioInputStream(InputStream stream) throws IOException, UnsupportedAudioFileException
Return an AudioInputStream wrapping the given input stream. The stream is assumed to hold valid audio data.
- Overrides:
- getAudioInputStream in interface AudioFileReader
- Parameters:
- Returns:
- an AudioInputStream for the stream
- Throws:
UnsupportedAudioFileException
- if the stream's type is not recognizedIOException
- if there is an error while reading the stream
public AudioInputStream getAudioInputStream(URL url) throws IOException, UnsupportedAudioFileException
Return an AudioInputStream for the given URL. The URL is assumed to hold valid audio data.
- Overrides:
- getAudioInputStream in interface AudioFileReader
- Parameters:
url
- the URL to read
- Returns:
- an AudioInputStream for the URL
- Throws:
UnsupportedAudioFileException
- if the URL's type is not recognizedIOException
- if there is an error while reading the URL