com.sshtools.zlib
Class ZLibCompression

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

public class ZLibCompression
extends java.lang.Object
implements SshCompression


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

getName

public java.lang.String getName()
Specified by:
getName in interface SshComponent
Specified by:
getName 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 java.io.IOException
Specified by:
compress in interface SshCompression
Throws:
java.io.IOException

uncompress

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


Copyright © 2012. All Rights Reserved.