public final class ResponseInputStream extends InputStream
| Constructor and Description |
|---|
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 |
statusCode() |
available, mark, markSupported, read, read, reset, skippublic ResponseInputStream(HttpURLConnection connection, int statusCode, Map<String,List<String>> headers, InputStream content)
public 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. All rights reserved.