|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SshCompression
Compression interface which can be implemented to provide the SSH Transport Protocol with compression.
| Field Summary | |
|---|---|
static int |
DEFLATER
Deflation mode |
static int |
INFLATER
Inflation mode |
| Method Summary | |
|---|---|
byte[] |
compress(byte[] data,
int start,
int len)
Compress a block of data. |
String |
getName()
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. |
| Field Detail |
|---|
static final int INFLATER
static final int DEFLATER
| Method Detail |
|---|
void init(int type,
int level)
type - the mode of the compression, should be either INFLATER or DEFLATERlevel - the level of compression
byte[] compress(byte[] data,
int start,
int len)
throws IOException
data - the data to compressstart - the offset of the data to compresslen - the length of the data
IOException
byte[] uncompress(byte[] data,
int start,
int len)
throws IOException
data - the data to uncompressstart - the offset of the data to uncompresslen - the length of the data
IOExceptionString getName()
getName in interface SshComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||