com.jcraft.jsch.jcraft
Class Compression

java.lang.Object
  extended by 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
Compression()
           
 
Method Summary
 byte[] compress(byte[] buf, int start, int[] len)
           
 void init(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 Detail

Compression

public Compression()
Method Detail

init

public void init(int type,
                 int level)
Specified by:
init in interface Compression

compress

public byte[] compress(byte[] buf,
                       int start,
                       int[] len)
Specified by:
compress in interface Compression

uncompress

public byte[] uncompress(byte[] buffer,
                         int start,
                         int[] length)
Specified by:
uncompress in interface Compression