| Modifier and Type | Class and Description |
|---|---|
| public static class | Codec.Gzip
A gzip compressor and decompressor. |
| public static class | Codec.Identity
The "identity", or "none" codec. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | compress(OutputStream
The output stream of uncompressed data os)Implements io. |
| public InputStream | decompress(InputStream
The input stream of uncompressed data is)Implements io. |
| public String | getMessageEncoding()
Implements io. |
| Gzip | back to summary |
|---|---|
| public Gzip() | |
| compress | back to summary |
|---|---|
| public OutputStream compress(OutputStream os) throws IOException Implements io. Doc from io. Wraps an existing output stream with a compressing output stream.
| |
| decompress | back to summary |
|---|---|
| public InputStream decompress(InputStream is) throws IOException Implements io. Doc from io. Wraps an existing input stream with a decompressing input stream.
| |
| getMessageEncoding | back to summary |
|---|---|
| public String getMessageEncoding() Implements io. Doc from io. Returns the message encoding that this compressor uses. This can be values such as "gzip", "deflate", "snappy", etc.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Codec | NONE
Special sentinel codec indicating that no compression should be used. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | compress(OutputStream
The output stream of uncompressed data os)Implements io. |
| public InputStream | decompress(InputStream
The input stream of uncompressed data is)Implements io. |
| public String | getMessageEncoding()
Implements io. |
| NONE | back to summary |
|---|---|
| public static final Codec NONE Special sentinel codec indicating that no compression should be used. Users should use reference equality to see if compression is disabled. | |
| Identity | back to summary |
|---|---|
| private Identity() | |
| compress | back to summary |
|---|---|
| public OutputStream compress(OutputStream os) Implements io. Doc from io. Wraps an existing output stream with a compressing output stream.
| |
| decompress | back to summary |
|---|---|
| public InputStream decompress(InputStream is) Implements io. Doc from io. Wraps an existing input stream with a decompressing input stream.
| |
| getMessageEncoding | back to summary |
|---|---|
| public String getMessageEncoding() Implements io. Doc from io. Returns the message encoding that this compressor uses. This can be values such as "gzip", "deflate", "snappy", etc.
| |