com.jscape.inet.ssh.transport.compression
Class Compression
java.lang.Object
com.jscape.inet.ssh.transport.compression.Compression
- Direct Known Subclasses:
- NullCompression, ZlibCompression
public abstract class Compression
- extends java.lang.Object
- Version:
- 1.0
- Author:
- Alex Usun
Method Summary |
java.lang.String |
getAlgorithm()
Returns name of used algorithm. |
int |
getMode()
|
void |
init(int opmode)
|
boolean |
isInitialized()
|
abstract byte[] |
update(byte[] data)
Processes the specified data. |
abstract byte[] |
update(byte[] buffer,
int i,
int payloadLength)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPRESS_MODE
public static final int COMPRESS_MODE
- See Also:
- Constant Field Values
DECOMPRESS_MODE
public static final int DECOMPRESS_MODE
- See Also:
- Constant Field Values
init
public void init(int opmode)
- Parameters:
opmode
-
isInitialized
public boolean isInitialized()
- Returns:
- if compression is initialized
update
public abstract byte[] update(byte[] data)
throws CompressionException
- Processes the specified data.
- Parameters:
data
- byte array of data.
- Returns:
- comressed data.
- Throws:
CompressionException
getAlgorithm
public java.lang.String getAlgorithm()
- Returns name of used algorithm.
- Returns:
- algoruthm name.
getMode
public int getMode()
- Returns:
- mode
update
public abstract byte[] update(byte[] buffer,
int i,
int payloadLength)
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved