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, skip
public 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 InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int statusCode()
Copyright © 2021–2024. All rights reserved.