public class HttpInputStreamWithRelease extends InputStream
| Constructor and Description |
|---|
HttpInputStreamWithRelease(URI uri,
org.apache.http.client.methods.HttpRequestBase req,
org.apache.http.HttpResponse resp) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected void |
finalize()
Finalizer does release the stream, but also logs at WARN level
including the URI at fault
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
String |
toString() |
mark, markSupported, read, reset, skippublic HttpInputStreamWithRelease(URI uri, org.apache.http.client.methods.HttpRequestBase req, org.apache.http.HttpResponse resp) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionprotected void finalize()
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.