public abstract class AudioFileReader extends Object
Constructor and Description |
---|
AudioFileReader() |
Modifier and Type | Method and Description |
---|---|
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.
|
public abstract AudioFileFormat getAudioFileFormat(InputStream stream) throws UnsupportedAudioFileException, IOException
IOException
.UnsupportedAudioFileException
- if the stream does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occursstream
- the input stream from which file format information should be
extractedAudioFileFormat
object describing the audio file formatInputStream.markSupported()
,
InputStream.mark(int)
public abstract AudioFileFormat getAudioFileFormat(URL url) throws UnsupportedAudioFileException, IOException
UnsupportedAudioFileException
- if the URL does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occursurl
- the URL from which file format information should be
extractedAudioFileFormat
object describing the audio file formatpublic abstract AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException
File
provided. The File
must
point to valid audio file data.UnsupportedAudioFileException
- if the File
does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occursfile
- the File
from which file format information should be
extractedAudioFileFormat
object describing the audio file formatpublic abstract AudioInputStream getAudioInputStream(InputStream stream) throws UnsupportedAudioFileException, IOException
IOException
.UnsupportedAudioFileException
- if the stream does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occursstream
- the input stream from which the AudioInputStream
should be
constructedAudioInputStream
object based on the audio file data contained
in the input stream.InputStream.markSupported()
,
InputStream.mark(int)
public abstract AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException
UnsupportedAudioFileException
- if the URL does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occursurl
- the URL for which the AudioInputStream
should be
constructedAudioInputStream
object based on the audio file data pointed
to by the URLpublic abstract AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException
File
provided. The File
must
point to valid audio file data.UnsupportedAudioFileException
- if the File
does not point to valid audio
file data recognized by the systemIOException
- if an I/O exception occursfile
- the File
for which the AudioInputStream
should be
constructedAudioInputStream
object based on the audio file data pointed
to by the Fileaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.