public interface CompressorStreamProvider
CompressorInputStream
s and
CompressorOutputStream
s.Modifier and Type | Method and Description |
---|---|
CompressorInputStream |
createCompressorInputStream(java.lang.String name,
java.io.InputStream in,
boolean decompressUntilEOF)
Creates a compressor input stream from a compressor name and an input
stream.
|
CompressorOutputStream |
createCompressorOutputStream(java.lang.String name,
java.io.OutputStream out)
Creates a compressor output stream from an compressor name and an output
stream.
|
java.util.Set<java.lang.String> |
getInputStreamCompressorNames()
Gets all the input stream compressor names for this provider
|
java.util.Set<java.lang.String> |
getOutputStreamCompressorNames()
Gets all the output stream compressor names for this provider
|
CompressorInputStream createCompressorInputStream(java.lang.String name, java.io.InputStream in, boolean decompressUntilEOF) throws CompressorException
name
- of the compressor, i.e.
"gz",
"bzip2",
"xz",
"lzma",
"pack200",
"snappy-raw",
"snappy-framed",
"z"
or
"deflate"in
- the input streamdecompressUntilEOF
- if true, decompress until the end of the input; if false, stop
after the first stream and leave the input position to point
to the next byte after the stream. This setting applies to the
gzip, bzip2 and xz formats only.CompressorException
- if the compressor name is not knownjava.lang.IllegalArgumentException
- if the name or input stream is nullCompressorOutputStream createCompressorOutputStream(java.lang.String name, java.io.OutputStream out) throws CompressorException
java.util.Set<java.lang.String> getInputStreamCompressorNames()
java.util.Set<java.lang.String> getOutputStreamCompressorNames()
Copyright © 2010 - 2020 Adobe. All Rights Reserved