javazoom.spi.vorbis.sampled.file

Class VorbisAudioFileReader


public class VorbisAudioFileReader
extends TAudioFileReader

This class implements the AudioFileReader class and provides an Ogg Vorbis file reader for use with the Java Sound Service Provider Interface.

Constructor Summary

VorbisAudioFileReader()

Method Summary

AudioFileFormat
getAudioFileFormat(File file)
Return the AudioFileFormat from the given file.
AudioFileFormat
getAudioFileFormat(InputStream inputStream)
Return the AudioFileFormat from the given InputStream.
protected AudioFileFormat
getAudioFileFormat(InputStream bitStream, int mediaLength, int totalms)
Return the AudioFileFormat from the given InputStream, length in bytes and length in milliseconds.
AudioFileFormat
getAudioFileFormat(InputStream inputStream, long medialength)
Return the AudioFileFormat from the given InputStream and length in bytes.
AudioFileFormat
getAudioFileFormat(URL url)
Return the AudioFileFormat from the given URL.
AudioInputStream
getAudioInputStream(File file)
Return the AudioInputStream from the given File.
AudioInputStream
getAudioInputStream(InputStream inputStream)
Return the AudioInputStream from the given InputStream.
AudioInputStream
getAudioInputStream(InputStream inputStream, int medialength, int totalms)
Return the AudioInputStream from the given InputStream.
AudioInputStream
getAudioInputStream(URL url)
Return the AudioInputStream from the given URL.

Constructor Details

VorbisAudioFileReader

public VorbisAudioFileReader()

Method Details

getAudioFileFormat

public AudioFileFormat getAudioFileFormat(File file)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioFileFormat from the given file.

getAudioFileFormat

public AudioFileFormat getAudioFileFormat(InputStream inputStream)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioFileFormat from the given InputStream.

getAudioFileFormat

protected AudioFileFormat getAudioFileFormat(InputStream bitStream,
                                             int mediaLength,
                                             int totalms)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioFileFormat from the given InputStream, length in bytes and length in milliseconds.

getAudioFileFormat

public AudioFileFormat getAudioFileFormat(InputStream inputStream,
                                          long medialength)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioFileFormat from the given InputStream and length in bytes.

getAudioFileFormat

public AudioFileFormat getAudioFileFormat(URL url)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioFileFormat from the given URL.

getAudioInputStream

public AudioInputStream getAudioInputStream(File file)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioInputStream from the given File.

getAudioInputStream

public AudioInputStream getAudioInputStream(InputStream inputStream)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioInputStream from the given InputStream.

getAudioInputStream

public AudioInputStream getAudioInputStream(InputStream inputStream,
                                            int medialength,
                                            int totalms)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioInputStream from the given InputStream.

getAudioInputStream

public AudioInputStream getAudioInputStream(URL url)
            throws UnsupportedAudioFileException,
                   IOException
Return the AudioInputStream from the given URL.

JavaZOOM 1999-2005