Wraps around another resource, delegates all queries to that other resource but uncompresses/compresses streams on the fly.
| Access | Constructor and Description |
|---|---|
| public | |
| public | GZipResource(ResourceCollection
the resource to wrap. other)Constructor with another resource to wrap. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the string "GZip".Implements abstract org. |
| protected InputStream | Returns: the wrapped stream.the stream to wrap. in)Implements abstract org. |
| protected OutputStream | Returns: the wrapped stream.the stream to wrap. out)Implements abstract org. |
| GZipResource | back to summary |
|---|---|
| public GZipResource() A no-arg constructor | |
| GZipResource | back to summary |
|---|---|
| public GZipResource(ResourceCollection other) Constructor with another resource to wrap.
| |
| getCompressionName | back to summary |
|---|---|
| protected String getCompressionName() Implements abstract org. Get the name of the compression method. | |
| wrapStream | back to summary |
|---|---|
| protected InputStream wrapStream(InputStream in) throws IOException Implements abstract org. Decompress on the fly using java.util.zip.GZIPInputStream.
| |
| wrapStream | back to summary |
|---|---|
| protected OutputStream wrapStream(OutputStream out) throws IOException Implements abstract org. Compress on the fly using java.util.zip.GZIPOutStream.
| |