类 DeflateCompressor
- java.lang.Object
-
- com.github.myibu.algorithm.compress.DeflateCompressor
-
- 所有已实现的接口:
Compressor,Debugable
public class DeflateCompressor extends java.lang.Object implements Compressor
Deflate compressor
-
-
构造器概要
构造器 构造器 说明 DeflateCompressor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intcompress(byte[] in_data, int in_len, byte[] out_data)compress bytesintdecompress(byte[] in_data, int in_len, byte[] out_data)decompress bytesvoidsetDebug(boolean isDebug)enable Debug or not, default should be not enabled
-
-
-
方法详细资料
-
compress
public int compress(byte[] in_data, int in_len, byte[] out_data)从接口复制的说明:Compressorcompress bytes- 指定者:
compress在接口中Compressor- 参数:
in_data- inputin_len- length of inputout_data- output- 返回:
- offset in output
-
decompress
public int decompress(byte[] in_data, int in_len, byte[] out_data)从接口复制的说明:Compressordecompress bytes- 指定者:
decompress在接口中Compressor- 参数:
in_data- inputin_len- length of inputout_data- output- 返回:
- offset in output
-
-