org.codegist.crest
Class HttpResourceInputStream
java.lang.Object
java.io.InputStream
org.codegist.common.io.InputStreamWrapper
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()
Method Summary |
void |
close()
|
Methods inherited from class org.codegist.common.io.InputStreamWrapper |
available, equals, hashCode, mark, markSupported, read, read, read, reset, skip, toString |
HttpResourceInputStream
public HttpResourceInputStream(HttpResource resource)
throws HttpException
- Throws:
HttpException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStreamWrapper
- Throws:
IOException
Copyright © 2011. All Rights Reserved.