| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private Deflater | |
| private Inflater | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | compress(Buffer
the buffer containing the data to compress buffer)Implements org. Compress the given buffer in place. |
| public void | init(Compression.
compression type type,compression level level)Implements org. Initialize this object to either compress or uncompress data. |
| public boolean | isDelayed()
Implements org. 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. |
| public void | uncompress(Buffer
the buffer containing the data to uncompress from, Buffer the buffer receiving the uncompressed data to)Implements org. Uncompress the data in a buffer into another buffer. |
| BUF_SIZE | back to summary |
|---|---|
| private static final int BUF_SIZE | |
| compresser | back to summary |
|---|---|
| private Deflater compresser | |
| decompresser | back to summary |
|---|---|
| private Inflater decompresser | |
| tmpbuf | back to summary |
|---|---|
| private byte[] tmpbuf | |
| CompressionZlib | back to summary |
|---|---|
| public CompressionZlib() Create a new instance of a ZLib base compression | |
| CompressionZlib | back to summary |
|---|---|
| protected CompressionZlib(String name) | |
| compress | back to summary |
|---|---|
| public void compress(Buffer buffer) throws IOException Implements org. Doc from org. Compress the given buffer in place.
| |
| init | back to summary |
|---|---|
| public void init(Compression. Implements org. Doc from org. Initialize this object to either compress or uncompress data. This method must be called prior to any calls to
either
| |
| isDelayed | back to summary |
|---|---|
| public boolean isDelayed() Implements org. Doc from org. 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.
| |
| uncompress | back to summary |
|---|---|
| public void uncompress(Buffer from, Buffer to) throws IOException Implements org. Doc from org. Uncompress the data in a buffer into another buffer.
| |