Package javazoom.spi.vorbis.sampled.file
Class VorbisAudioFileReader
java.lang.Object
javax.sound.sampled.spi.AudioFileReader
org.tritonus.share.sampled.file.TAudioFileReader
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAudioFileFormat
(File file) Return the AudioFileFormat from the given file.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.getAudioFileFormat
(InputStream inputStream, long medialength) Return the AudioFileFormat from the given InputStream and length in bytes.getAudioFileFormat
(URL url) Return the AudioFileFormat from the given URL.getAudioInputStream
(File file) Return the AudioInputStream from the given File.getAudioInputStream
(InputStream inputStream) Return the AudioInputStream from the given InputStream.getAudioInputStream
(InputStream inputStream, int medialength, int totalms) Return the AudioInputStream from the given InputStream.getAudioInputStream
(URL url) Return the AudioInputStream from the given URL.Methods inherited from class org.tritonus.share.sampled.file.TAudioFileReader
calculateFrameSize, getAudioInputStream, readIeeeExtended, readLittleEndianInt, readLittleEndianShort
-
Constructor Details
-
VorbisAudioFileReader
public VorbisAudioFileReader()
-
-
Method Details
-
getAudioFileFormat
public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException Return the AudioFileFormat from the given file.- Overrides:
getAudioFileFormat
in classorg.tritonus.share.sampled.file.TAudioFileReader
- Throws:
UnsupportedAudioFileException
IOException
-
getAudioFileFormat
public AudioFileFormat getAudioFileFormat(URL url) throws UnsupportedAudioFileException, IOException Return the AudioFileFormat from the given URL.- Overrides:
getAudioFileFormat
in classorg.tritonus.share.sampled.file.TAudioFileReader
- Throws:
UnsupportedAudioFileException
IOException
-
getAudioFileFormat
public AudioFileFormat getAudioFileFormat(InputStream inputStream) throws UnsupportedAudioFileException, IOException Return the AudioFileFormat from the given InputStream.- Overrides:
getAudioFileFormat
in classorg.tritonus.share.sampled.file.TAudioFileReader
- Throws:
UnsupportedAudioFileException
IOException
-
getAudioFileFormat
public AudioFileFormat getAudioFileFormat(InputStream inputStream, long medialength) throws UnsupportedAudioFileException, IOException Return the AudioFileFormat from the given InputStream and length in bytes.- Specified by:
getAudioFileFormat
in classorg.tritonus.share.sampled.file.TAudioFileReader
- Throws:
UnsupportedAudioFileException
IOException
-
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. -
getAudioInputStream
public AudioInputStream getAudioInputStream(InputStream inputStream) throws UnsupportedAudioFileException, IOException Return the AudioInputStream from the given InputStream.- Overrides:
getAudioInputStream
in classorg.tritonus.share.sampled.file.TAudioFileReader
- Throws:
UnsupportedAudioFileException
IOException
-
getAudioInputStream
public AudioInputStream getAudioInputStream(InputStream inputStream, int medialength, int totalms) throws UnsupportedAudioFileException, IOException Return the AudioInputStream from the given InputStream. -
getAudioInputStream
public AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException Return the AudioInputStream from the given File.- Overrides:
getAudioInputStream
in classorg.tritonus.share.sampled.file.TAudioFileReader
- Throws:
UnsupportedAudioFileException
IOException
-
getAudioInputStream
public AudioInputStream getAudioInputStream(URL url) throws UnsupportedAudioFileException, IOException Return the AudioInputStream from the given URL.- Overrides:
getAudioInputStream
in classorg.tritonus.share.sampled.file.TAudioFileReader
- Throws:
UnsupportedAudioFileException
IOException
-