|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.sampled.spi.AudioFileReader
org.kc7bfi.jflac.sound.spi.FlacAudioFileReader
public class FlacAudioFileReader
Provider for Flac audio file reading services. This implementation can parse the format information from Flac audio file, and can produce audio input streams from files of this type.
Constructor Summary | |
---|---|
FlacAudioFileReader()
|
Method Summary | |
---|---|
AudioFileFormat |
getAudioFileFormat(File file)
Obtains the audio file format of the File provided. |
AudioFileFormat |
getAudioFileFormat(InputStream stream)
Obtains an audio input stream from the input stream provided. |
protected AudioFileFormat |
getAudioFileFormat(InputStream bitStream,
int mediaLength)
Return the AudioFileFormat from the given InputStream. |
AudioFileFormat |
getAudioFileFormat(URL url)
Obtains an audio input stream from the URL provided. |
AudioInputStream |
getAudioInputStream(File file)
Obtains an audio input stream from the File provided. |
AudioInputStream |
getAudioInputStream(InputStream stream)
Obtains an audio input stream from the input stream provided. |
protected AudioInputStream |
getAudioInputStream(InputStream inputStream,
int medialength)
Obtains an audio input stream from the input stream provided. |
AudioInputStream |
getAudioInputStream(URL url)
Obtains an audio input stream from the URL provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlacAudioFileReader()
Method Detail |
---|
public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException
getAudioFileFormat
in class AudioFileReader
file
- the File from which file format information should be
extracted.
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.public AudioFileFormat getAudioFileFormat(URL url) throws UnsupportedAudioFileException, IOException
getAudioFileFormat
in class AudioFileReader
url
- the URL for which the AudioInputStream should be constructed.
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.public AudioFileFormat getAudioFileFormat(InputStream stream) throws UnsupportedAudioFileException, IOException
getAudioFileFormat
in class AudioFileReader
stream
- the input stream from which the AudioInputStream should be
constructed.
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.protected AudioFileFormat getAudioFileFormat(InputStream bitStream, int mediaLength) throws UnsupportedAudioFileException, IOException
bitStream
- mediaLength
-
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.public AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException
getAudioInputStream
in class AudioFileReader
file
- the File for which the AudioInputStream should be constructed.
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.public AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException
getAudioInputStream
in class AudioFileReader
url
- the URL for which the AudioInputStream should be constructed.
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.public AudioInputStream getAudioInputStream(InputStream stream) throws UnsupportedAudioFileException, IOException
getAudioInputStream
in class AudioFileReader
stream
- the input stream from which the AudioInputStream should be
constructed.
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.protected AudioInputStream getAudioInputStream(InputStream inputStream, int medialength) throws UnsupportedAudioFileException, IOException
inputStream
- the input stream from which the AudioInputStream should be
constructed.medialength
-
UnsupportedAudioFileException
- if the File does not point to a valid audio file data
recognized by the system.
IOException
- if an I/O exception occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |