net.ssh.jsch.jcraft
Class Compression

java.lang.Object
  extended by net.ssh.jsch.jcraft.Compression
All Implemented Interfaces:
CompressionInterface

public class Compression
extends java.lang.Object
implements CompressionInterface


Field Summary
 
Fields inherited from interface net.ssh.jsch.CompressionInterface
DEFLATER, INFLATER
 
Constructor Summary
Compression()
           
 
Method Summary
 int 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
equals, 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 CompressionInterface

compress

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

uncompress

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