com.jcraft.jsch.jcraft.Compression Class Reference

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

List of all members.

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

Detailed Description

Definition at line 34 of file Compression.java.


Constructor & Destructor Documentation

com.jcraft.jsch.jcraft.Compression.Compression (  ) 

Definition at line 41 of file Compression.java.

References com.jcraft.jsch.jcraft.Compression.stream.


Member Function Documentation

byte [] com.jcraft.jsch.jcraft.Compression.compress ( byte[]  buf,
int  start,
int[]  len 
)
void com.jcraft.jsch.jcraft.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.

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 
)

Member Data Documentation

final int com.jcraft.jsch.jcraft.Compression.BUF_SIZE = 4096 [static, 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().

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().

byte [] com.jcraft.jsch.jcraft.Compression.tmpbuf = new byte[BUF_SIZE] [private]

Definition at line 37 of file Compression.java.


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

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1