public class RequestReleasingInputStream
extends java.io.FilterInputStream
| 构造器和说明 |
|---|
RequestReleasingInputStream(java.io.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. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
public RequestReleasingInputStream(java.io.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 java.io.IOException
in.close().close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.FilterInputStreamjava.io.IOException - if an I/O error occurs.FilterInputStream.in