Package io.grpc

Interface Decompressor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.InputStream decompress​(java.io.InputStream is)
      Wraps an existing input stream with a decompressing input stream.
      java.lang.String getMessageEncoding()
      Returns the message encoding that this compressor uses.
    • Method Detail

      • getMessageEncoding

        java.lang.String getMessageEncoding()
        Returns the message encoding that this compressor uses.

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

      • decompress

        java.io.InputStream decompress​(java.io.InputStream is)
                                throws java.io.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:
        java.io.IOException