com.jcraft.jsch.Compression Interface Reference

Usually not to be used by applications. More...

Inheritance diagram for com.jcraft.jsch.Compression:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void init (int type, int level)
 Initializes the compression engine.

Static Public Attributes

static final int INFLATER = 0
 Constant for inflating (decompressing) mode.
static final int DEFLATER = 1
 Constant for deflating (compressing) mode.

Detailed Description

Usually not to be used by applications.

An object supporting compression and decompression of data streams. If during key exchange some compression protocol was negiotated, this protocol name is looked up in the Session.getConfig session configuration} to retrieve the class name to be used for compressing/decompressing the data stream.

Then an instance is created with the no-argument constructor, and initialized with the init method.

One Compression object will be used either for compression or decompression, not both.

Definition at line 47 of file Compression.java.


Member Function Documentation

void com.jcraft.jsch.Compression.init ( int  type,
int  level 
)

Initializes the compression engine.

Parameters:
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.

Implemented in com.jcraft.jsch.jcraft.Compression.


Member Data Documentation

final int com.jcraft.jsch.Compression.DEFLATER = 1 [static]

Constant for deflating (compressing) mode.

Definition at line 57 of file Compression.java.

Referenced by com.jcraft.jsch.jcraft.Compression.init().

final int com.jcraft.jsch.Compression.INFLATER = 0 [static]

Constant for inflating (decompressing) mode.

Definition at line 52 of file Compression.java.

Referenced by com.jcraft.jsch.jcraft.Compression.init().


The documentation for this interface was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1