org.apache.commons.vfs.provider.http
Class HttpFileObject.HttpInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by org.apache.commons.vfs.util.MonitorInputStream
                  extended by org.apache.commons.vfs.provider.http.HttpFileObject.HttpInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
HttpFileObject

static class HttpFileObject.HttpInputStream
extends MonitorInputStream

An InputStream that cleans up the HTTP connection on close.


Field Summary
private  org.apache.commons.httpclient.methods.GetMethod method
           
 
Fields inherited from class java.io.BufferedInputStream
buf, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
HttpFileObject.HttpInputStream(org.apache.commons.httpclient.methods.GetMethod method)
           
 
Method Summary
protected  void onClose()
          Called after the stream has been closed.
 
Methods inherited from class org.apache.commons.vfs.util.MonitorInputStream
close, getCount, read, read
 
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

private final org.apache.commons.httpclient.methods.GetMethod method
Constructor Detail

HttpFileObject.HttpInputStream

public HttpFileObject.HttpInputStream(org.apache.commons.httpclient.methods.GetMethod method)
                               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

onClose

protected void onClose()
                throws java.io.IOException
Called after the stream has been closed.

Overrides:
onClose in class MonitorInputStream
Throws:
java.io.IOException