| Constructor and Description |
|---|
GzippedSource(Source source)
Constructs a
GzippedSource for the underlying gzipped source. |
GzippedSource(Source source,
String characterEncoding)
Constructs a
GzippedSource for the underlying gzipped source
with the specific characterEncoding which can be used when getReader()
is invoked from the underlying gzipped byte stream. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Retrieves the gunzipped content as binary data using a
InputStream. |
Reader |
getReader()
Retrieves the gunzipped content as character data using a
Reader. |
public GzippedSource(Source source)
GzippedSource for the underlying gzipped source.source - public GzippedSource(Source source, String characterEncoding)
GzippedSource for the underlying gzipped source
with the specific characterEncoding which can be used when getReader()
is invoked from the underlying gzipped byte stream.source - characterEncoding - public InputStream getInputStream() throws IOException
InputStream.
Either this method or getReader() may be called to read the body, not both.
getInputStream in interface SourceIOExceptionpublic Reader getReader() throws IOException
Reader.
Either this method or getInputStream() may be called to read the body, not both.
getReader in interface SourceIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.