Public Member Functions | |
Compression () | |
void | init (int type, int level) |
Initializes the compression engine. | |
byte[] | compress (byte[] buf, int start, int[] len) |
byte[] | uncompress (byte[] buffer, int start, int[] length) |
Static Public Attributes | |
static final int | INFLATER = 0 |
Constant for inflating (decompressing) mode. | |
static final int | DEFLATER = 1 |
Constant for deflating (compressing) mode. | |
Private Attributes | |
final int | buffer_margin = 32+20 |
int | type |
ZStream | stream |
byte[] | tmpbuf = new byte[BUF_SIZE] |
byte[] | inflated_buf |
Static Private Attributes | |
static final int | BUF_SIZE = 4096 |
Definition at line 34 of file Compression.java.
com.jcraft.jsch.jcraft.Compression.Compression | ( | ) |
Definition at line 41 of file Compression.java.
References com.jcraft.jsch.jcraft.Compression.stream.
byte [] com.jcraft.jsch.jcraft.Compression.compress | ( | byte[] | buf, | |
int | start, | |||
int[] | len | |||
) |
Definition at line 59 of file Compression.java.
References com.jcraft.jsch.jcraft.Compression.BUF_SIZE, com.jcraft.jsch.jcraft.Compression.buffer_margin, com.jcraft.jsch.jcraft.Compression.stream, and com.jcraft.jsch.jcraft.Compression.tmpbuf.
void com.jcraft.jsch.jcraft.Compression.init | ( | int | type, | |
int | level | |||
) |
Initializes the compression engine.
type | one of INFLATER or DEFLATER. In the first case the library later will only call uncompress, in the second case only compress. | |
level | the compression level. This is only relevant for the DEFLATER mode. |
Implements com.jcraft.jsch.Compression.
Definition at line 45 of file Compression.java.
References com.jcraft.jsch.jcraft.Compression.BUF_SIZE, com.jcraft.jsch.Compression.DEFLATER, com.jcraft.jsch.jcraft.Compression.inflated_buf, com.jcraft.jsch.Compression.INFLATER, and com.jcraft.jsch.jcraft.Compression.stream.
byte [] com.jcraft.jsch.jcraft.Compression.uncompress | ( | byte[] | buffer, | |
int | start, | |||
int[] | length | |||
) |
Definition at line 94 of file Compression.java.
References com.jcraft.jsch.jcraft.Compression.BUF_SIZE, com.jcraft.jsch.jcraft.Compression.inflated_buf, com.jcraft.jsch.jcraft.Compression.stream, and com.jcraft.jsch.jcraft.Compression.tmpbuf.
final int com.jcraft.jsch.jcraft.Compression.BUF_SIZE = 4096 [static, private] |
Definition at line 35 of file Compression.java.
Referenced by com.jcraft.jsch.jcraft.Compression.compress(), com.jcraft.jsch.jcraft.Compression.init(), and com.jcraft.jsch.jcraft.Compression.uncompress().
final int com.jcraft.jsch.jcraft.Compression.buffer_margin = 32+20 [private] |
Definition at line 36 of file Compression.java.
Referenced by com.jcraft.jsch.jcraft.Compression.compress().
final int com.jcraft.jsch.Compression.DEFLATER = 1 [static, inherited] |
Constant for deflating (compressing) mode.
Definition at line 57 of file Compression.java.
Referenced by com.jcraft.jsch.jcraft.Compression.init().
byte [] com.jcraft.jsch.jcraft.Compression.inflated_buf [private] |
Definition at line 57 of file Compression.java.
Referenced by com.jcraft.jsch.jcraft.Compression.init(), and com.jcraft.jsch.jcraft.Compression.uncompress().
final int com.jcraft.jsch.Compression.INFLATER = 0 [static, inherited] |
Constant for inflating (decompressing) mode.
Definition at line 52 of file Compression.java.
Referenced by com.jcraft.jsch.jcraft.Compression.init().
ZStream com.jcraft.jsch.jcraft.Compression.stream [private] |
Definition at line 38 of file Compression.java.
Referenced by com.jcraft.jsch.jcraft.Compression.compress(), com.jcraft.jsch.jcraft.Compression.Compression(), com.jcraft.jsch.jcraft.Compression.init(), and com.jcraft.jsch.jcraft.Compression.uncompress().
byte [] com.jcraft.jsch.jcraft.Compression.tmpbuf = new byte[BUF_SIZE] [private] |
Definition at line 39 of file Compression.java.
Referenced by com.jcraft.jsch.jcraft.Compression.compress(), and com.jcraft.jsch.jcraft.Compression.uncompress().
int com.jcraft.jsch.jcraft.Compression.type [private] |
Definition at line 37 of file Compression.java.