javazoom.spi.vorbis.sampled.file
Class VorbisAudioFileReader

java.lang.Object
  |
  +--javax.sound.sampled.spi.AudioFileReader
        |
        +--javazoom.spi.vorbis.sampled.file.VorbisAudioFileReader

public class VorbisAudioFileReader
extends javax.sound.sampled.spi.AudioFileReader

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


Field Summary
static int BUFSIZE
           
static boolean DEBUG
           
 
Constructor Summary
VorbisAudioFileReader()
           
 
Method Summary
 javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.File file)
          Return the AudiopFileFormat 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, java.io.ByteArrayOutputStream baos)
          Return the AudioFileFormat from the given InputStream.
 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.net.URL url)
          Return the AudioInputStream from the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG

BUFSIZE

public static final int BUFSIZE
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 AudiopFileFormat from the given file.
Overrides:
getAudioFileFormat in class javax.sound.sampled.spi.AudioFileReader

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 javax.sound.sampled.spi.AudioFileReader

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 javax.sound.sampled.spi.AudioFileReader

getAudioFileFormat

protected javax.sound.sampled.AudioFileFormat getAudioFileFormat(java.io.InputStream bitStream,
                                                                 java.io.ByteArrayOutputStream baos)
                                                          throws javax.sound.sampled.UnsupportedAudioFileException,
                                                                 java.io.IOException
Return the AudioFileFormat from the given InputStream. Implementation.

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 javax.sound.sampled.spi.AudioFileReader

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 javax.sound.sampled.spi.AudioFileReader

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 javax.sound.sampled.spi.AudioFileReader


JavaZOOM 2001