public static interface Response.Body extends Closeable
Modifier and Type | Method and Description |
---|---|
InputStream |
asInputStream()
It is the responsibility of the caller to close the stream.
|
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. |
Integer |
length()
length in bytes, if known.
|
Integer length()
Integer.MAX_VALUE
.
boolean isRepeatable()
asInputStream()
and asReader()
can be called more than once.InputStream asInputStream() throws IOException
IOException
Reader asReader() throws IOException
IOException
Copyright © 2012–2018 OpenFeign. All rights reserved.