Provider for audio file reading services. Classes providing concrete
implementations can parse the format information from one or more types of
audio file, and can produce audio input streams from files of these types.
Method from javax.sound.sampled.spi.AudioFileReader Detail: |
abstract public AudioFileFormat getAudioFileFormat(InputStream stream) throws UnsupportedAudioFileException, IOException
Obtains the audio file format of the input stream provided. The stream must
point to valid audio file data. In general, audio file readers may
need to read some data from the stream before determining whether they
support it. These parsers must
be able to mark the stream, read enough data to determine whether they
support the stream, and, if not, reset the stream's read pointer to its original
position. If the input stream does not support this, this method may fail
with an IOException . |
abstract public AudioFileFormat getAudioFileFormat(URL url) throws UnsupportedAudioFileException, IOException
Obtains the audio file format of the URL provided. The URL must
point to valid audio file data. |
abstract public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException
Obtains the audio file format of the File provided. The File must
point to valid audio file data. |
abstract public AudioInputStream getAudioInputStream(InputStream stream) throws UnsupportedAudioFileException, IOException
Obtains an audio input stream from the input stream provided. The stream must
point to valid audio file data. In general, audio file readers may
need to read some data from the stream before determining whether they
support it. These parsers must
be able to mark the stream, read enough data to determine whether they
support the stream, and, if not, reset the stream's read pointer to its original
position. If the input stream does not support this, this method may fail
with an IOException . |
abstract public AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException
Obtains an audio input stream from the URL provided. The URL must
point to valid audio file data. |
abstract public AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException
Obtains an audio input stream from the File provided. The File must
point to valid audio file data. |