| 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. |
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
getInputStream in interface SourceIOExceptionpublic Reader getReader() throws IOException
getReader in interface SourceIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.