uk.ac.cam.acr31.oggdecoder
Class HttpOggStream

java.lang.Object
  extended by uk.ac.cam.acr31.oggdecoder.OggStream
      extended by uk.ac.cam.acr31.oggdecoder.HttpOggStream

public class HttpOggStream
extends OggStream


Field Summary
private  org.apache.http.client.HttpClient client
           
private  long currentPosition
           
private  java.io.InputStream inputStream
           
private  org.apache.http.client.methods.HttpUriRequest request
           
 
Constructor Summary
HttpOggStream(java.lang.String address)
           
 
Method Summary
 void close()
           
 void read(byte[] buf, int off, int len)
           
 
Methods inherited from class uk.ac.cam.acr31.oggdecoder.OggStream
advance, read16, read32, read64, read8
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentPosition

private long currentPosition

inputStream

private java.io.InputStream inputStream

client

private org.apache.http.client.HttpClient client

request

private org.apache.http.client.methods.HttpUriRequest request
Constructor Detail

HttpOggStream

public HttpOggStream(java.lang.String address)
              throws InvalidStreamException
Throws:
InvalidStreamException
Method Detail

read

public void read(byte[] buf,
                 int off,
                 int len)
          throws EndOfStreamException,
                 InvalidStreamException
Specified by:
read in class OggStream
Throws:
EndOfStreamException
InvalidStreamException

close

public void close()
Specified by:
close in class OggStream