Class GzipTool

java.lang.Object
io.datarouter.bytes.compress.gzip.GzipTool

public class GzipTool extends Object
  • Field Details

    • CODEC

      public static final Codec<byte[],byte[]> CODEC
  • Constructor Details

    • GzipTool

      public GzipTool()
  • Method Details

    • encode

      public static byte[] encode(byte[] input)
    • encode

      public static byte[] encode(byte[] input, ByteArrayOutputStream buffer)
    • encode

      public static io.datarouter.scanner.Scanner<byte[]> encode(InputStream input)
    • encodeToInputStream

      public static InputStream encodeToInputStream(InputStream input)
    • decode

      public static byte[] decode(byte[] compressedBytes)
    • decode

      public static byte[] decode(byte[] compressedBytes, ByteArrayOutputStream buffer)