public class NoneCompression extends java.lang.Object implements SshCompression
DEFLATER, INFLATER| Constructor and Description |
|---|
NoneCompression() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
int start,
int len)
Compress a block of data.
|
java.lang.String |
getAlgorithm()
Get the algorithm name for this compression implementation.
|
void |
init(int type,
int level)
Initialize the compression.
|
byte[] |
uncompress(byte[] data,
int start,
int len)
Uncompress a block of data.
|
public void init(int type,
int level)
SshCompressioninit in interface SshCompressiontype - the mode of the compression, should be either INFLATER or DEFLATERlevel - the level of compressionpublic byte[] compress(byte[] data,
int start,
int len)
throws java.io.IOException
SshCompressioncompress in interface SshCompressiondata - the data to compressstart - the offset of the data to compresslen - the length of the datajava.io.IOExceptionpublic byte[] uncompress(byte[] data,
int start,
int len)
throws java.io.IOException
SshCompressionuncompress in interface SshCompressiondata - the data to uncompressstart - the offset of the data to uncompresslen - the length of the datajava.io.IOExceptionpublic java.lang.String getAlgorithm()
SshCompressiongetAlgorithm in interface SshComponentgetAlgorithm in interface SshCompressionCopyright © 2022. All rights reserved.