com.sshtools.zlib
Class ZLibCompression

java.lang.Object
  extended by com.sshtools.zlib.ZLibCompression
All Implemented Interfaces:
SshCompression
Direct Known Subclasses:
OpenSSHZLibCompression

public class ZLibCompression
extends Object
implements SshCompression


Field Summary
 
Fields inherited from interface com.maverick.ssh.compression.SshCompression
DEFLATER, INFLATER
 
Constructor Summary
ZLibCompression()
           
 
Method Summary
 byte[] compress(byte[] buf, int start, int len)
           
 String getAlgorithm()
           
 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

ZLibCompression

public ZLibCompression()
Method Detail

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface SshCompression

init

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

compress

public byte[] compress(byte[] buf,
                       int start,
                       int len)
                throws IOException
Specified by:
compress in interface SshCompression
Throws:
IOException

uncompress

public byte[] uncompress(byte[] buffer,
                         int start,
                         int length)
                  throws IOException
Specified by:
uncompress in interface SshCompression
Throws:
IOException


Copyright © 2012. All Rights Reserved.