Secure iNet Factory

com.jscape.inet.ssh.transport.compression.zlib
Class ZlibCompression

java.lang.Object
  extended by com.jscape.inet.ssh.transport.compression.Compression
      extended by com.jscape.inet.ssh.transport.compression.zlib.ZlibCompression

public class ZlibCompression
extends Compression

Zlib compression.

Version:
1.0
Author:
Alex

Field Summary
static java.lang.String ALGORITHM
           
 
Fields inherited from class com.jscape.inet.ssh.transport.compression.Compression
COMPRESS_MODE, DECOMPRESS_MODE
 
Constructor Summary
ZlibCompression()
           
ZlibCompression(boolean comressor)
           
 
Method Summary
 java.lang.String getAlgorithm()
          Returns name of used algorithm.
 void init(int opmode)
           
 void initCompressor()
           
 void initDecompressor()
           
 byte[] update(byte[] data)
          Processes the specified data.
 byte[] update(byte[] data, int offset, int length)
           
 
Methods inherited from class com.jscape.inet.ssh.transport.compression.Compression
getMode, isInitialized
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALGORITHM

public static final java.lang.String ALGORITHM
See Also:
Constant Field Values
Constructor Detail

ZlibCompression

public ZlibCompression(boolean comressor)

ZlibCompression

public ZlibCompression()
Method Detail

init

public void init(int opmode)
Overrides:
init in class Compression

initCompressor

public void initCompressor()

initDecompressor

public void initDecompressor()

getAlgorithm

public java.lang.String getAlgorithm()
Description copied from class: Compression
Returns name of used algorithm.

Overrides:
getAlgorithm in class Compression
Returns:
algoruthm name.

update

public byte[] update(byte[] data)
Description copied from class: Compression
Processes the specified data.

Specified by:
update in class Compression
Parameters:
data - byte array of data.
Returns:
comressed data.

update

public byte[] update(byte[] data,
                     int offset,
                     int length)
Specified by:
update in class Compression

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved