javazoom.spi.vorbis.sampled.file
Class VorbisAudioFileReader

java.lang.Object
  extended by javax.sound.sampled.spi.AudioFileReader
      extended by org.tritonus.share.sampled.file.TAudioFileReader
          extended by javazoom.spi.vorbis.sampled.file.VorbisAudioFileReader

public class VorbisAudioFileReader
extends org.tritonus.share.sampled.file.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
 javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File file)
          Return the AudioFileFormat from the given file.
 javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.InputStream inputStream)
          Return the AudioFileFormat from the given InputStream.
protected  javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.InputStream bitStream, int mediaLength, int totalms)
          Return the AudioFileFormat from the given InputStream, length in bytes and length in milliseconds.
 javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.InputStream inputStream, long medialength)
          Return the AudioFileFormat from the given InputStream and length in bytes.
 javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.net.URL url)
          Return the AudioFileFormat from the given URL.
 javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.File file)
          Return the AudioInputStream from the given File.
 javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.InputStream inputStream)
          Return the AudioInputStream from the given InputStream.
 javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.InputStream inputStream, int medialength, int totalms)
          Return the AudioInputStream from the given InputStream.
 javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url)
          Return the AudioInputStream from the given URL.
 
Methods inherited from class org.tritonus.share.sampled.file.TAudioFileReader
calculateFrameSize, getAudioInputStream, readIeeeExtended, readLittleEndianInt, readLittleEndianShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VorbisAudioFileReader

public VorbisAudioFileReader()
Method Detail

getAudioFileFormat

public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File file)
                                                       throws javax.sound.sampled.UnsupportedAudioFileException,
                                                              java.io.IOException
Return the AudioFileFormat from the given file.

Overrides:
getAudioFileFormat in class org.tritonus.share.sampled.file.TAudioFileReader
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioFileFormat

public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.net.URL url)
                                                       throws javax.sound.sampled.UnsupportedAudioFileException,
                                                              java.io.IOException
Return the AudioFileFormat from the given URL.

Overrides:
getAudioFileFormat in class org.tritonus.share.sampled.file.TAudioFileReader
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioFileFormat

public javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.InputStream inputStream)
                                                       throws javax.sound.sampled.UnsupportedAudioFileException,
                                                              java.io.IOException
Return the AudioFileFormat from the given InputStream.

Overrides:
getAudioFileFormat in class org.tritonus.share.sampled.file.TAudioFileReader
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioFileFormat

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

Specified by:
getAudioFileFormat in class org.tritonus.share.sampled.file.TAudioFileReader
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioFileFormat

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

Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.InputStream inputStream)
                                                         throws javax.sound.sampled.UnsupportedAudioFileException,
                                                                java.io.IOException
Return the AudioInputStream from the given InputStream.

Overrides:
getAudioInputStream in class org.tritonus.share.sampled.file.TAudioFileReader
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.InputStream inputStream,
                                                                int medialength,
                                                                int totalms)
                                                         throws javax.sound.sampled.UnsupportedAudioFileException,
                                                                java.io.IOException
Return the AudioInputStream from the given InputStream.

Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.File file)
                                                         throws javax.sound.sampled.UnsupportedAudioFileException,
                                                                java.io.IOException
Return the AudioInputStream from the given File.

Overrides:
getAudioInputStream in class org.tritonus.share.sampled.file.TAudioFileReader
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getAudioInputStream

public javax.sound.sampled.AudioInputStream getAudioInputStream(java.net.URL url)
                                                         throws javax.sound.sampled.UnsupportedAudioFileException,
                                                                java.io.IOException
Return the AudioInputStream from the given URL.

Overrides:
getAudioInputStream in class org.tritonus.share.sampled.file.TAudioFileReader
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException


JavaZOOM 1999-2008