@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1704") public interface Compressor
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
compress(java.io.OutputStream os)
Wraps an existing output stream with a compressing output stream.
|
java.lang.String |
getMessageEncoding()
Returns the message encoding that this compressor uses.
|
java.lang.String getMessageEncoding()
This can be values such as "gzip", "deflate", "snappy", etc.
java.io.OutputStream compress(java.io.OutputStream os)
throws java.io.IOException
os - The output stream of uncompressed datajava.io.IOException