class HttpClientWrappingInputStream extends SdkFilterInputStream
InputStream
that closes the associated HttpClient
when the stream is closed.Modifier and Type | Field and Description |
---|---|
private org.apache.http.client.HttpClient |
client |
Constructor and Description |
---|
HttpClientWrappingInputStream(org.apache.http.client.HttpClient client,
java.io.InputStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
abort, abortIfNeeded, available, isMetricActivated, mark, markSupported, read, read, release, reset, skip
public HttpClientWrappingInputStream(org.apache.http.client.HttpClient client, java.io.InputStream stream)
client
- the HttpClient
to wrapstream
- the InputStream
to wrappublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class SdkFilterInputStream
java.io.IOException