Package com.jcraft.jsch.jcraft
Class Compression
java.lang.Object
com.jcraft.jsch.jcraft.Compression
- All Implemented Interfaces:
Compression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final intprivate byte[]private com.jcraft.jzlib.ZStreamprivate byte[]private intFields inherited from interface com.jcraft.jsch.Compression
DEFLATER, INFLATER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]compress(byte[] buf, int start, int[] len) voidinit(int type, int level) byte[]uncompress(byte[] buffer, int start, int[] length)
-
Field Details
-
BUF_SIZE
private static final int BUF_SIZE- See Also:
-
buffer_margin
private final int buffer_margin- See Also:
-
type
private int type -
stream
private com.jcraft.jzlib.ZStream stream -
tmpbuf
private byte[] tmpbuf -
inflated_buf
private byte[] inflated_buf
-
-
Constructor Details
-
Compression
public Compression()
-
-
Method Details
-
init
public void init(int type, int level) - Specified by:
initin interfaceCompression
-
compress
public byte[] compress(byte[] buf, int start, int[] len) - Specified by:
compressin interfaceCompression
-
uncompress
public byte[] uncompress(byte[] buffer, int start, int[] length) - Specified by:
uncompressin interfaceCompression
-