public class AutoCloseHttpClientInputStream
extends org.apache.commons.io.input.AutoCloseInputStream
in| Constructor and Description |
|---|
AutoCloseHttpClientInputStream(InputStream is,
org.apache.http.client.HttpClient hc) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterRead(int n) |
void |
close()
Closes the proxied InputStream, and the HttpClient.
|
protected void |
finalize() |
public AutoCloseHttpClientInputStream(InputStream is, org.apache.http.client.HttpClient hc)
is - - the InputStream being proxiedhc - - the disposable HttpClient from where the InpuStream came fromprotected void afterRead(int n)
throws IOException
afterRead in class org.apache.commons.io.input.AutoCloseInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.commons.io.input.AutoCloseInputStreamIOExceptionCopyright © 2018. All Rights Reserved.