public class HttpMethodReleaseInputStream extends ByteCountInputStream
in| Constructor and Description |
|---|
HttpMethodReleaseInputStream(org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This will force close the connection if the content has not been fully consumed
|
getByteCount, read, read, read, skipavailable, mark, markSupported, resetpublic HttpMethodReleaseInputStream(org.apache.http.HttpResponse response)
throws IOException
response - The HTTP response to read fromIOException - If there is a problem reading from the responseNullPointerException - If the response has no message entitypublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOException - if an I/O error occursCloseable.close(),
HttpConnection.shutdown()Copyright © 2019. All rights reserved.