public abstract class AudioFileReader extends java.lang.Object
| Constructor and Description |
|---|
AudioFileReader()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract javax.sound.sampled.AudioFileFormat |
getAudioFileFormat(java.io.File file)
Return the format of the given file as deduced by this provider.
|
abstract javax.sound.sampled.AudioFileFormat |
getAudioFileFormat(java.io.InputStream is)
Return the format of the given input stream as deduced by this provider.
|
abstract javax.sound.sampled.AudioFileFormat |
getAudioFileFormat(java.net.URL url)
Return the format of the given URL as deduced by this provider.
|
abstract javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.io.File file)
Return an AudioInputStream for the given file.
|
abstract javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.io.InputStream is)
Return an AudioInputStream wrapping the given input stream.
|
abstract javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.net.URL url)
Return an AudioInputStream for the given URL.
|
public AudioFileReader()
public abstract javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File file) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
file - the file to examinejavax.sound.sampled.UnsupportedAudioFileException - if the file's format is not
recognizedjava.io.IOException - if there is an I/O error while reading the filepublic abstract javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.InputStream is) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
is - the stream to examinejavax.sound.sampled.UnsupportedAudioFileException - if the stream's format is not
recognizedjava.io.IOException - if there is an I/O error while reading the streampublic abstract javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.net.URL url) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
url - the URL to examinejavax.sound.sampled.UnsupportedAudioFileException - if the URL's format is not
recognizedjava.io.IOException - if there is an I/O error while reading the URLpublic abstract javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.File file) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
file - the file to readjavax.sound.sampled.UnsupportedAudioFileException - if the file's type is not
recognizedjava.io.IOException - if there is an error while reading the filepublic abstract javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.InputStream is) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
is - the input stream to wrapjavax.sound.sampled.UnsupportedAudioFileException - if the stream's type is not
recognizedjava.io.IOException - if there is an error while reading the streampublic abstract javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
url - the URL to readjavax.sound.sampled.UnsupportedAudioFileException - if the URL's type is not
recognizedjava.io.IOException - if there is an error while reading the URL