| Constructor and Description |
|---|
HttpEntitySource(org.apache.http.HttpEntity entity)
Constructs an
HttpEntitySource for the underlying HttpEntity. |
HttpEntitySource(org.apache.http.HttpEntity entity,
String characterEncoding)
Constructs a
HttpEntitySource for the underlying HttpEntity
with the specific characterEncoding which can be used when getReader()
is invoked from the underlying HttpEntity content stream. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Retrieves the content as binary data using a
InputStream. |
Reader |
getReader()
Retrieves the content as character data using a
Reader. |
public HttpEntitySource(org.apache.http.HttpEntity entity)
HttpEntitySource for the underlying HttpEntity.entity - public HttpEntitySource(org.apache.http.HttpEntity entity,
String characterEncoding)
HttpEntitySource for the underlying HttpEntity
with the specific characterEncoding which can be used when getReader()
is invoked from the underlying HttpEntity content stream.entity - characterEncoding - public InputStream getInputStream() throws IOException
InputStream.getInputStream in interface SourceIOExceptionpublic Reader getReader() throws IOException
Reader.getReader in interface SourceIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.