Package javazoom.spi.vorbis.sampled.file
Class VorbisAudioFileReader
- java.lang.Object
-
- TAudioFileReader
-
- javazoom.spi.vorbis.sampled.file.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
Constructors Constructor Description VorbisAudioFileReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.- 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.- 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.- 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.- 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.- 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.- 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.- Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
-
-