Interface Decompressor
-
public interface DecompressorRepresents a message decompressor.Copied from https://github.com/grpc/grpc-java/blob/80c3c992a66aa21ccf3e12e38000316e45f97e64/api/src/main/java/io/grpc/Decompressor.java
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamdecompress(InputStream is)Wraps an existing input stream with a decompressing input stream.StringgetMessageEncoding()Returns the message encoding that this compressor uses.
-
-
-
Method Detail
-
getMessageEncoding
String getMessageEncoding()
Returns the message encoding that this compressor uses.This can be values such as "gzip", "deflate", "snappy", etc.
-
decompress
InputStream decompress(InputStream is) throws IOException
Wraps an existing input stream with a decompressing input stream.- Parameters:
is- The input stream of uncompressed data- Returns:
- An input stream that decompresses
- Throws:
IOException
-
-