public interface ResponseBodyReaderContext extends ResponseBodyReadableContext
Modifier and Type | Method and Description |
---|---|
InputStream |
getContent() |
String |
getContentAsString() |
org.apache.http.HttpEntity |
getHttpEntity() |
getContentLength, getContentType, getStatusCode, getStatusLine, getType
InputStream getContent() throws IOException
IOException
- if the stream could not be created.String getContentAsString() throws IOException
String
IOException
- if the stream could not be created or
if the first byte cannot be read for any reason other than the end of the file,
if the input stream has been closed, or if some other I/OInvalidContentLengthException
- If content length exceeds Integer.MAX_VALUE
UnsupportedEncodingException
- If the named charset is not supportedorg.apache.http.HttpEntity getHttpEntity()
HttpEntity
Copyright © 2020. All rights reserved.