public abstract class AudioFileReader extends Object
| Constructor and Description |
|---|
AudioFileReader()
|
| Modifier and Type | Method and Description |
|---|---|
abstract AudioFileFormat |
getAudioFileFormat(File
Obtains the audio file format of the
File provided.
|
abstract AudioFileFormat |
getAudioFileFormat(InputStream
Obtains the audio file format of the input stream provided.
|
abstract AudioFileFormat |
getAudioFileFormat(URL
Obtains the audio file format of the URL provided.
|
abstract AudioInputStream |
getAudioInputStream(File
Obtains an audio input stream from the
File provided.
|
abstract AudioInputStream |
getAudioInputStream(InputStream
Obtains an audio input stream from the input stream provided.
|
abstract AudioInputStream |
getAudioInputStream(URL
Obtains an audio input stream from the URL provided.
|
public abstract AudioFileFormatgetAudioFileFormat(InputStream stream) throws UnsupportedAudioFileException , IOException
IOException.
stream - the input stream from which file format information should be extracted
AudioFileFormat object describing the audio file format
UnsupportedAudioFileException - if the stream does not point to valid audio file data recognized by the system
IOException - if an I/O exception occurs
InputStream.markSupported() ,
InputStream.mark(int)
public abstract AudioFileFormatgetAudioFileFormat(URL url) throws UnsupportedAudioFileException , IOException
url - the URL from which file format information should be extracted
AudioFileFormat object describing the audio file format
UnsupportedAudioFileException - if the URL does not point to valid audio file data recognized by the system
IOException - if an I/O exception occurs
public abstract AudioFileFormatgetAudioFileFormat(File file) throws UnsupportedAudioFileException , IOException
File provided. The
File must point to valid audio file data.
file - the
File from which file format information should be extracted
AudioFileFormat object describing the audio file format
UnsupportedAudioFileException - if the
File does not point to valid audio file data recognized by the system
IOException - if an I/O exception occurs
public abstract AudioInputStreamgetAudioInputStream(InputStream stream) throws UnsupportedAudioFileException , IOException
IOException.
stream - the input stream from which the
AudioInputStream should be constructed
AudioInputStream object based on the audio file data contained in the input stream.
UnsupportedAudioFileException - if the stream does not point to valid audio file data recognized by the system
IOException - if an I/O exception occurs
InputStream.markSupported() ,
InputStream.mark(int)
public abstract AudioInputStreamgetAudioInputStream(URL url) throws UnsupportedAudioFileException , IOException
url - the URL for which the
AudioInputStream should be constructed
AudioInputStream object based on the audio file data pointed to by the URL
UnsupportedAudioFileException - if the URL does not point to valid audio file data recognized by the system
IOException - if an I/O exception occurs
public abstract AudioInputStreamgetAudioInputStream(File file) throws UnsupportedAudioFileException , IOException
File provided. The
File must point to valid audio file data.
file - the
File for which the
AudioInputStream should be constructed
AudioInputStream object based on the audio file data pointed to by the File
UnsupportedAudioFileException - if the
File does not point to valid audio file data recognized by the system
IOException - if an I/O exception occurs