uk.ac.cam.acr31.oggdecoder
Class OggStream

java.lang.Object
  extended by uk.ac.cam.acr31.oggdecoder.OggStream
Direct Known Subclasses:
BufferedOggStream, ByteArrayOggStream, FileOggStream, HttpOggStream, QueuedOggStream

public abstract class OggStream
extends java.lang.Object


Field Summary
private  byte[] buf
           
 
Constructor Summary
OggStream()
           
 
Method Summary
 void advance(int length)
          advance the stream by length bytes discarding the information
abstract  void close()
           
abstract  void read(byte[] buf, int off, int len)
           
 int read16()
           
 int read32()
           
 long read64()
           
 int read8()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

private byte[] buf
Constructor Detail

OggStream

public OggStream()
Method Detail

read

public abstract void read(byte[] buf,
                          int off,
                          int len)
                   throws EndOfStreamException,
                          InvalidStreamException
Throws:
EndOfStreamException
InvalidStreamException

read8

public int read8()
          throws EndOfStreamException,
                 InvalidStreamException
Throws:
EndOfStreamException
InvalidStreamException

read16

public int read16()
           throws EndOfStreamException,
                  InvalidStreamException
Throws:
EndOfStreamException
InvalidStreamException

read32

public int read32()
           throws EndOfStreamException,
                  InvalidStreamException
Throws:
EndOfStreamException
InvalidStreamException

read64

public long read64()
            throws EndOfStreamException,
                   InvalidStreamException
Throws:
EndOfStreamException
InvalidStreamException

advance

public void advance(int length)
             throws EndOfStreamException,
                    InvalidStreamException
advance the stream by length bytes discarding the information

Parameters:
length -
Throws:
EndOfStreamException
InvalidStreamException

close

public abstract void close()