public class FlacAudioFileReader extends AudioFileReader
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DURATION
Property key for the duration in microseconds.
|
| Constructor and Description |
|---|
FlacAudioFileReader() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String KEY_DURATION
public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException
getAudioFileFormat in class AudioFileReaderfile - 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 AudioFileReaderurl - 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 AudioFileReaderstream - 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 AudioFileReaderfile - 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 AudioFileReaderurl - 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 AudioFileReaderstream - 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.Copyright © 2004–2017. All rights reserved.