public class Compression
extends java.lang.Object
Constructor and Description |
---|
Compression() |
Modifier and Type | Method and Description |
---|---|
static Flow<ByteString,ByteString,NotUsed> |
gunzip(int maxBytesPerChunk)
Creates a Flow that decompresses gzip-compressed stream of data.
|
static Flow<ByteString,ByteString,NotUsed> |
inflate(int maxBytesPerChunk)
Creates a Flow that decompresses deflate-compressed stream of data.
|
public static Flow<ByteString,ByteString,NotUsed> gunzip(int maxBytesPerChunk)
maxBytesPerChunk
- Maximum length of the output ByteString
chunk.public static Flow<ByteString,ByteString,NotUsed> inflate(int maxBytesPerChunk)
maxBytesPerChunk
- Maximum length of the output ByteString
chunk.