de.jarnbjo.vorbis
Class VorbisStream

java.lang.Object
  extended byde.jarnbjo.vorbis.VorbisStream

public class VorbisStream
extends java.lang.Object


Field Summary
static int BIG_ENDIAN
           
static int LITTLE_ENDIAN
           
 
Constructor Summary
VorbisStream()
           
VorbisStream(LogicalOggStream oggStream)
           
 
Method Summary
 void close()
           
 CommentHeader getCommentHeader()
           
 int getCurrentBitRate()
           
 long getCurrentGranulePosition()
           
 IdentificationHeader getIdentificationHeader()
           
 boolean isOpen()
           
 byte[] processPacket(byte[] packet)
           
 int readPcm(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BIG_ENDIAN

public static final int BIG_ENDIAN
See Also:
Constant Field Values

LITTLE_ENDIAN

public static final int LITTLE_ENDIAN
See Also:
Constant Field Values
Constructor Detail

VorbisStream

public VorbisStream()

VorbisStream

public VorbisStream(LogicalOggStream oggStream)
             throws VorbisFormatException,
                    java.io.IOException
Method Detail

getIdentificationHeader

public IdentificationHeader getIdentificationHeader()

getCommentHeader

public CommentHeader getCommentHeader()

isOpen

public boolean isOpen()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

readPcm

public int readPcm(byte[] buffer,
                   int offset,
                   int length)
            throws java.io.IOException
Throws:
java.io.IOException

getCurrentGranulePosition

public long getCurrentGranulePosition()

getCurrentBitRate

public int getCurrentBitRate()

processPacket

public byte[] processPacket(byte[] packet)
                     throws VorbisFormatException,
                            java.io.IOException
Throws:
VorbisFormatException
java.io.IOException