|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sshd.common.compression.CompressionZlib
public class CompressionZlib
ZLib based Compression.
Nested Class Summary | |
---|---|
static class |
CompressionZlib.Factory
Named factory for the ZLib Compression. |
Nested classes/interfaces inherited from interface org.apache.sshd.common.Compression |
---|
Compression.Type |
Constructor Summary | |
---|---|
CompressionZlib()
Create a new instance of a ZLib base compression |
Method Summary | |
---|---|
void |
compress(Buffer buffer)
Compress the given buffer in place. |
void |
init(Compression.Type type,
int level)
Initialize this object to either compress or uncompress data. |
boolean |
isDelayed()
Delayed compression is an Open-SSH specific feature which informs both the client and server to not compress data before the session has been authenticated. |
void |
uncompress(Buffer from,
Buffer to)
Uncompress the data in a buffer into another buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompressionZlib()
Method Detail |
---|
public boolean isDelayed()
Compression
isDelayed
in interface Compression
public void init(Compression.Type type, int level)
Compression
compress
or uncompress
.
Once the object has been initialized, only one of
compress
or uncompress
methods can be
called.
init
in interface Compression
public void compress(Buffer buffer) throws IOException
Compression
compress
in interface Compression
buffer
- the buffer containing the data to compress
IOException
- if an error occurspublic void uncompress(Buffer from, Buffer to) throws IOException
Compression
uncompress
in interface Compression
from
- the buffer containing the data to uncompressto
- the buffer receiving the uncompressed data
IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |