org.codegist.crest
Class HttpResourceInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.codegist.common.io.InputStreamWrapper
          extended by org.codegist.crest.HttpResourceInputStream
All Implemented Interfaces:
Closeable

public class HttpResourceInputStream
extends InputStreamWrapper

InputStream backed by a HttpResource object.

On close, this input stream release underlying http network resources

Author:
Laurent Gilles (laurent.gilles@codegist.org)
See Also:
HttpResource, HttpResource.release()

Constructor Summary
HttpResourceInputStream(HttpResource resource)
           
 
Method Summary
 void close()
           
 
Methods inherited from class org.codegist.common.io.InputStreamWrapper
available, equals, hashCode, mark, markSupported, read, read, read, reset, skip, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpResourceInputStream

public HttpResourceInputStream(HttpResource resource)
                        throws HttpException
Throws:
HttpException
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStreamWrapper
Throws:
IOException


Copyright © 2011. All Rights Reserved.