uk.ac.cam.acr31.oggdecoder
Class BufferedOggStream
java.lang.Object
  
uk.ac.cam.acr31.oggdecoder.OggStream
      
uk.ac.cam.acr31.oggdecoder.BufferedOggStream
- All Implemented Interfaces: 
 - BufferListenerable
 
public class BufferedOggStream
- extends OggStream
- implements BufferListenerable
  
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
buffer
private BlockingRingBuffer buffer
source
private OggStream source
buf
private byte[] buf
readCounter
private long readCounter
writeCounter
private long writeCounter
closed
private boolean closed
bufferStatusListener
private BufferStatusListener bufferStatusListener
bufSize
private int bufSize
BufferedOggStream
public BufferedOggStream(OggStream source,
                         int bufSize)
setBufferStatusListener
public void setBufferStatusListener(BufferStatusListener l)
- Specified by:
 setBufferStatusListener in interface BufferListenerable
 
 
throwEOS
private void throwEOS()
               throws EndOfStreamException
 
- Throws:
 EndOfStreamException
 
read
public void read(byte[] buf,
                 int off,
                 int len)
          throws EndOfStreamException,
                 InvalidStreamException
- Specified by:
 read in class OggStream
 
- Throws:
 EndOfStreamException
InvalidStreamException
 
getAvailable
public long getAvailable()
 
 
close
public void close()
- Specified by:
 close in class OggStream