public class ZLibCompression
extends java.lang.Object
implements com.sshtools.common.ssh.compression.SshCompression
Constructor and Description |
---|
ZLibCompression() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] buf,
int start,
int len) |
java.lang.String |
getAlgorithm() |
void |
init(int type,
int level) |
byte[] |
uncompress(byte[] buffer,
int start,
int length) |
public java.lang.String getAlgorithm()
getAlgorithm
in interface com.sshtools.common.ssh.components.SshComponent
getAlgorithm
in interface com.sshtools.common.ssh.compression.SshCompression
public void init(int type, int level)
init
in interface com.sshtools.common.ssh.compression.SshCompression
public byte[] compress(byte[] buf, int start, int len) throws java.io.IOException
compress
in interface com.sshtools.common.ssh.compression.SshCompression
java.io.IOException
public byte[] uncompress(byte[] buffer, int start, int length) throws java.io.IOException
uncompress
in interface com.sshtools.common.ssh.compression.SshCompression
java.io.IOException
Copyright © 2022. All rights reserved.