Inflater的逆操作

主要关注下构造体:

public Deflater(int level,
                boolean nowrap)
Creates a new compressor using the specified compression level. If 'nowrap' is true then the ZLIB header and checksum fields will not be used in order to support the compression format used in both GZIP and PKZIP. 

Parameters:
level - the compression level (0-9)
nowrap - if true then use GZIP compatible compress

压缩层次,默认是DEFAULT_COMPRESSION为-1。
同样也有是否兼容模式选项。

DeflateOutputStream/InflateInputStream
根据压缩方法构成一个过滤流。


com.jcraft.jzlib是zlib的开发者。

评论
发表评论

您还没有登录,请登录后发表评论

Azi
搜索本博客
存档
最新评论