Package com.jcraft.jsch.jcraft
Class Compression
- java.lang.Object
-
- com.jcraft.jsch.jcraft.Compression
-
- All Implemented Interfaces:
Compression
public class Compression extends java.lang.Object implements Compression
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BUF_SIZE
private int
buffer_margin
private byte[]
inflated_buf
private com.jcraft.jzlib.ZStream
stream
private byte[]
tmpbuf
private int
type
-
Fields inherited from interface com.jcraft.jsch.Compression
DEFLATER, INFLATER
-
-
Constructor Summary
Constructors Constructor Description Compression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
compress(byte[] buf, int start, int[] len)
void
init(int type, int level)
byte[]
uncompress(byte[] buffer, int start, int[] length)
-
-
-
Field Detail
-
BUF_SIZE
private static final int BUF_SIZE
- See Also:
- Constant Field Values
-
buffer_margin
private final int buffer_margin
- See Also:
- Constant Field Values
-
type
private int type
-
stream
private com.jcraft.jzlib.ZStream stream
-
tmpbuf
private byte[] tmpbuf
-
inflated_buf
private byte[] inflated_buf
-
-
Method Detail
-
init
public void init(int type, int level)
- Specified by:
init
in interfaceCompression
-
compress
public byte[] compress(byte[] buf, int start, int[] len)
- Specified by:
compress
in interfaceCompression
-
uncompress
public byte[] uncompress(byte[] buffer, int start, int[] length)
- Specified by:
uncompress
in interfaceCompression
-
-