public final class ResponseInputStream extends InputStream
| Constructor and Description |
|---|
ResponseInputStream(Closeable closeable,
int statusCode,
Map<String,List<String>> headers,
InputStream content) |
ResponseInputStream(HttpURLConnection connection,
int statusCode,
Map<String,List<String>> headers,
InputStream content) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Optional<String> |
header(String name) |
Map<String,List<String>> |
headers() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
statusCode() |
available, mark, markSupported, read, reset, skippublic ResponseInputStream(HttpURLConnection connection, int statusCode, Map<String,List<String>> headers, InputStream content)
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int statusCode()
Copyright © 2021–2024. All rights reserved.