Top Description Methods
io.grpc

public Interface Decompressor

Known Direct Subinterfaces
io.grpc.Codec
Annotations
@ExperimentalApi:https://github.com/grpc/grpc-java/issues/1704
Imports
java.io.IOException, .InputStream

Represents a message decompressor.

Method Summary

Modifier and TypeMethod and Description
public InputStream

Returns:

An input stream that decompresses
decompress
(InputStream
The input stream of uncompressed data
is
)

Wraps an existing input stream with a decompressing input stream.

public String
getMessageEncoding()

Returns the message encoding that this compressor uses.

Method Detail

decompressback to summary
public InputStream decompress(InputStream is) throws IOException

Wraps an existing input stream with a decompressing input stream.

Parameters
is:InputStream

The input stream of uncompressed data

Returns:InputStream

An input stream that decompresses

getMessageEncodingback to summary
public String getMessageEncoding()

Returns the message encoding that this compressor uses.

This can be values such as "gzip", "deflate", "snappy", etc.