com.monica.javacom.ssh
Class MJCSSHZLibCompression

java.lang.Object
  |
  +--com.monica.javacom.ssh.MJCSSHZLibCompression
All Implemented Interfaces:
MJCSSHCompressionAlgorithm

public class MJCSSHZLibCompression
extends java.lang.Object
implements MJCSSHCompressionAlgorithm

Zlib RFC 1950


Constructor Summary
MJCSSHZLibCompression()
          Default constructor for the class.
 
Method Summary
 java.lang.String compress(java.lang.String data)
          Compresses the given String.
 java.lang.String decompress(java.lang.String 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MJCSSHZLibCompression

public MJCSSHZLibCompression()
Default constructor for the class.
Method Detail

getCompressionAlgorithmName

public java.lang.String getCompressionAlgorithmName()
Returns the MJC name of the MJCSSHCompressionAlgorithm.
Specified by:
getCompressionAlgorithmName in interface MJCSSHCompressionAlgorithm
Returns:
String: the MJC name of the MJCSSHCompressionAlgorithm

getCompressionAlgorithmVersion

public java.lang.String getCompressionAlgorithmVersion()
Returns the MJC version of the MJCSSHCompressionAlgorithm.
Specified by:
getCompressionAlgorithmVersion in interface MJCSSHCompressionAlgorithm
Returns:
String: the MJC version of the MJCSSHCompressionAlgorithm.

compress

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

decompress

public java.lang.String decompress(java.lang.String data)
Decompresses the given String.
Specified by:
decompress in interface MJCSSHCompressionAlgorithm
Parameters:
String - s: the to be decompressed String
Returns:
String: the decompressed String