|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.schmizz.sshj.transport.compression.ZlibCompression
public class ZlibCompression
ZLib based Compression.
| Nested Class Summary | |
|---|---|
static class |
ZlibCompression.Factory
Named factory for the ZLib Compression. |
| Nested classes/interfaces inherited from interface net.schmizz.sshj.transport.compression.Compression |
|---|
Compression.Mode |
| Constructor Summary | |
|---|---|
ZlibCompression()
|
|
| Method Summary | |
|---|---|
void |
compress(Buffer buffer)
Compress the given buffer in place. |
void |
init(Compression.Mode mode)
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 ZlibCompression()
| Method Detail |
|---|
public void init(Compression.Mode mode)
Compressioncompress or uncompress. Once the object has been initialized, only one of
compress or uncompress method can be called.
init in interface Compressionpublic boolean isDelayed()
Compression
isDelayed in interface Compressionpublic void compress(Buffer buffer)
Compression
compress in interface Compressionbuffer - the buffer containing the data to compress s
public void uncompress(Buffer from,
Buffer to)
throws TransportException
Compression
uncompress in interface Compressionfrom - the buffer containing the data to uncompressto - the buffer receiving the uncompressed data
TransportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||