com.sshtools.zlib
Class ZLibCompression
java.lang.Object
com.sshtools.zlib.ZLibCompression
- All Implemented Interfaces:
- SshCompression
- Direct Known Subclasses:
- OpenSSHZLibCompression
public class ZLibCompression
- extends Object
- implements SshCompression
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZLibCompression
public ZLibCompression()
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.