public class HttpResponseInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
HttpResponseInputStream(java.lang.String url,
HttpResponse response,
boolean isRedirect) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
HttpResponse |
getResponse()
get the underlying request object.
|
HttpEntity |
getResponseEntity()
get the underlying request object.
|
java.lang.String |
getUrl() |
boolean |
isRedirect() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
public HttpResponseInputStream(java.lang.String url,
HttpResponse response,
boolean isRedirect)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getUrl()
public boolean isRedirect()
public HttpResponse getResponse()
public HttpEntity getResponseEntity()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStream