public interface Compression
| Modifier and Type | Interface and Description |
|---|---|
static class |
Compression.Type
Enum identifying if this object will be used to compress
or uncompress data.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean isDelayed()
void init(Compression.Type type, int level)
compress or uncompress.
Once the object has been initialized, only one of
compress or uncompress methods can be
called.type - level - void compress(Buffer buffer) throws java.io.IOException
buffer - the buffer containing the data to compressjava.io.IOException - if an error occursCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.