com.monica.javacom.interfaces
Interface MJCSSHCompressionAlgorithm

All Known Implementing Classes:
MJCSSHNoneCompression, MJCSSHZLibCompression

public interface MJCSSHCompressionAlgorithm

Compression algorithm used by the SSH layer. Provides functionality for compression/ decompression.


Method Summary
 java.lang.String compress(java.lang.String data)
          Compresses the given String.
 java.lang.String decompress(java.lang.String compressed_data)
          Decompresses the given String.
 java.lang.String getCompressionAlgorithmName()
          Returns the MJC name of the MJCSSHCompressionAlgorithm.
 java.lang.String getCompressionAlgorithmVersion()
          Returns the MJC version of the MJCSSHCompressionAlgorithm.
 

Method Detail

getCompressionAlgorithmName

public java.lang.String getCompressionAlgorithmName()
Returns the MJC name of the MJCSSHCompressionAlgorithm.
Returns:
String: the MJC name of the MJCSSHCompressionAlgorithm

getCompressionAlgorithmVersion

public java.lang.String getCompressionAlgorithmVersion()
Returns the MJC version of the MJCSSHCompressionAlgorithm.
Returns:
String: the MJC version of the MJCSSHCompressionAlgorithm.

compress

public java.lang.String compress(java.lang.String data)
Compresses the given String.
Parameters:
String - s: the to be compressed String
Returns:
String: the compressed String

decompress

public java.lang.String decompress(java.lang.String compressed_data)
Decompresses the given String.
Parameters:
String - s: the to be decompressed String
Returns:
String: the decompressed String