|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.sound.sampled.spi.AudioFileReader
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.
Constructor Summary | |
AudioFileReader()
|
Method Summary | |
abstract AudioFileFormat |
getAudioFileFormat(File file)
Obtains the audio file format of the File provided. |
abstract AudioFileFormat |
getAudioFileFormat(InputStream stream)
Obtains the audio file format of the input stream provided. |
abstract AudioFileFormat |
getAudioFileFormat(URL url)
Obtains the audio file format of the URL provided. |
abstract AudioInputStream |
getAudioInputStream(File file)
Obtains an audio input stream from the File provided. |
abstract AudioInputStream |
getAudioInputStream(InputStream stream)
Obtains an audio input stream from the input stream provided. |
abstract 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 AudioFileReader()
Method Detail |
public abstract AudioFileFormat getAudioFileFormat(InputStream stream) throws UnsupportedAudioFileException, IOException
IOException
.stream
- the input stream from which file format information should be
extractedAudioFileFormat
object describing the audio file formatUnsupportedAudioFileException
- if the stream does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occursInputStream.markSupported()
,
InputStream.mark(int)
public abstract AudioFileFormat getAudioFileFormat(URL url) throws UnsupportedAudioFileException, IOException
url
- the URL from which file format information should be
extractedAudioFileFormat
object describing the audio file formatUnsupportedAudioFileException
- if the URL does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occurspublic abstract AudioFileFormat getAudioFileFormat(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
extractedAudioFileFormat
object describing the audio file formatUnsupportedAudioFileException
- if the File
does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occurspublic abstract AudioInputStream getAudioInputStream(InputStream stream) throws UnsupportedAudioFileException, IOException
IOException
.stream
- the input stream from which the AudioInputStream
should be
constructedAudioInputStream
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 systemIOException
- if an I/O exception occursInputStream.markSupported()
,
InputStream.mark(int)
public abstract AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException
url
- the URL for which the AudioInputStream
should be
constructedAudioInputStream
object based on the audio file data pointed
to by the URLUnsupportedAudioFileException
- if the URL does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occurspublic abstract AudioInputStream getAudioInputStream(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
constructedAudioInputStream
object based on the audio file data pointed
to by the FileUnsupportedAudioFileException
- if the File
does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occurs
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.