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, skip
public 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 Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
- if an I/O error occurs.FilterInputStream.in
Copyright © 2017 JBoss by Red Hat. All rights reserved.