public class RequestReleasingInputStream extends FilterInputStream
in| Constructor and Description |
|---|
RequestReleasingInputStream(InputStream in,
org.apache.http.client.methods.HttpRequestBase httpRequestBase)
Creates a
FilterInputStream
by assigning the argument in
to the field this.in so as
to remember it for later use. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this input stream and releases any system resources
associated with the stream.
|
available, mark, markSupported, read, read, read, reset, skippublic RequestReleasingInputStream(InputStream in, org.apache.http.client.methods.HttpRequestBase httpRequestBase)
FilterInputStream
by assigning the argument in
to the field this.in so as
to remember it for later use.in - the underlying input stream, or null if
this instance is to be created without an underlying stream.httpRequestBase - The request object that should be released if the stream closedpublic void close()
throws IOException
in.close().close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOException - if an I/O error occurs.FilterInputStream.inCopyright © 2015. All rights reserved.