public static interface Response.Body
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
asInputStream()
It is the responsibility of the caller to close the stream.
|
java.io.Reader |
asReader()
It is the responsibility of the caller to close the stream.
|
boolean |
isRepeatable()
True if
asInputStream() and asReader() can be called more than once. |
java.lang.Integer |
length()
length in bytes, if known.
|
java.lang.Integer length()
boolean isRepeatable()
asInputStream() and asReader() can be called more than once.java.io.InputStream asInputStream()
throws java.io.IOException
java.io.IOExceptionjava.io.Reader asReader()
throws java.io.IOException
java.io.IOException