Package com.jcraft.jsch.jcraft
Class Compression
java.lang.Object
com.jcraft.jsch.jcraft.Compression
- All Implemented Interfaces:
Compression
public class Compression extends java.lang.Object implements Compression
-
Field Summary
Fields inherited from interface com.jcraft.jsch.Compression
DEFLATER, INFLATER -
Constructor Summary
Constructors Constructor Description Compression() -
Method Summary
Modifier and Type Method Description byte[]compress(byte[] buf, int start, int[] len)voidinit(int type, int level)byte[]uncompress(byte[] buffer, int start, int[] length)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Compression
public Compression()
-
-
Method Details
-
init
public void init(int type, int level) throws java.lang.Exception- Specified by:
initin interfaceCompression- Throws:
java.lang.Exception
-
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
-