com.monica.javacom.ssh
Class MJCSSHNoneCompression
java.lang.Object
|
+--com.monica.javacom.ssh.MJCSSHNoneCompression
- All Implemented Interfaces:
- MJCSSHCompressionAlgorithm
- public class MJCSSHNoneCompression
- extends java.lang.Object
- implements MJCSSHCompressionAlgorithm
Class for implementing the "none" compression method, eg. no compression at all.
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MJCSSHNoneCompression
public MJCSSHNoneCompression()
getCompressionAlgorithmName
public java.lang.String getCompressionAlgorithmName()
- Description copied from interface:
MJCSSHCompressionAlgorithm
- Returns the MJC name of the MJCSSHCompressionAlgorithm.
- Specified by:
getCompressionAlgorithmName
in interface MJCSSHCompressionAlgorithm
- Following copied from interface:
com.monica.javacom.interfaces.MJCSSHCompressionAlgorithm
- Returns:
- String: the MJC name of the MJCSSHCompressionAlgorithm
getCompressionAlgorithmVersion
public java.lang.String getCompressionAlgorithmVersion()
- Description copied from interface:
MJCSSHCompressionAlgorithm
- Returns the MJC version of the MJCSSHCompressionAlgorithm.
- Specified by:
getCompressionAlgorithmVersion
in interface MJCSSHCompressionAlgorithm
- Following copied from interface:
com.monica.javacom.interfaces.MJCSSHCompressionAlgorithm
- Returns:
- String: the MJC version of the MJCSSHCompressionAlgorithm.
compress
public java.lang.String compress(java.lang.String data)
- Description copied from interface:
MJCSSHCompressionAlgorithm
- Compresses the given String.
- Specified by:
compress
in interface MJCSSHCompressionAlgorithm
- Following copied from interface:
com.monica.javacom.interfaces.MJCSSHCompressionAlgorithm
- Parameters:
String
- s: the to be compressed String- Returns:
- String: the compressed String
decompress
public java.lang.String decompress(java.lang.String compressed_data)
- Description copied from interface:
MJCSSHCompressionAlgorithm
- Decompresses the given String.
- Specified by:
decompress
in interface MJCSSHCompressionAlgorithm
- Following copied from interface:
com.monica.javacom.interfaces.MJCSSHCompressionAlgorithm
- Parameters:
String
- s: the to be decompressed String- Returns:
- String: the decompressed String