public final class SaperionCompressionStreamFactory extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPRESSION_LEVEL |
Modifier and Type | Method and Description |
---|---|
static InputStream |
newCompressionInputStream(InputStream content)
This factory method creates an
InputStream that compresses its content while reading in the
same way that the Saperion backend expects "PKZIP" compressed data. |
static InputStreamFilterFactory |
newDecompressionFactory()
This factory creates a new
InputStreamFilterFactory that delegates to
newDecompressionInputStream(InputStream) . |
static InputStream |
newDecompressionInputStream(InputStream compressed)
This factory creates an
InputStream that decompresses data compressed with the Saperion
backend "PKZIP" compression on the fly. |
public static final int COMPRESSION_LEVEL
public static InputStream newCompressionInputStream(InputStream content)
InputStream
that compresses its content while reading in the
same way that the Saperion backend expects "PKZIP" compressed data.
The compression is actually "DEFLATE" without any header or checksum.content
- an input stream with the content to compresspublic static InputStream newDecompressionInputStream(InputStream compressed)
InputStream
that decompresses data compressed with the Saperion
backend "PKZIP" compression on the fly.
The compression is actually "DEFLATE" without any header or checksum.compressed
- an input stream with the compressed contentpublic static InputStreamFilterFactory newDecompressionFactory()
InputStreamFilterFactory
that delegates to
newDecompressionInputStream(InputStream)
.InputStreamFilterFactory
that delegates to
newDecompressionInputStream(InputStream)
Copyright © 2016 SAPERION AG. All rights reserved.