com.sshtools.j2ssh.transport.compression
Class SshCompressionFactory

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.compression.SshCompressionFactory

public class SshCompressionFactory
extends java.lang.Object

Creates new instances of SshCompression objects. Will load additional compression methods from the SSH API configuration file ssh.xml as long as they follow the name@domain syntax.

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )

Field Summary
static java.lang.String COMP_NONE
          Defines the none method
 
Constructor Summary
protected SshCompressionFactory()
          Constructor for the SshCompressionFactory object
 
Method Summary
static java.lang.String getDefaultCompression()
           Returns the default compression method.
static java.util.List getSupportedCompression()
           Returns the supported compression methods available.
static SshCompression newInstance(java.lang.String algorithmName)
           Create a new instance of the compression method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMP_NONE

public static final java.lang.String COMP_NONE
Defines the none method

See Also:
Constant Field Values
Constructor Detail

SshCompressionFactory

protected SshCompressionFactory()
Constructor for the SshCompressionFactory object

Method Detail

getDefaultCompression

public static java.lang.String getDefaultCompression()

Returns the default compression method.

Returns:

getSupportedCompression

public static java.util.List getSupportedCompression()

Returns the supported compression methods available.

Returns:
The supported compressions.

newInstance

public static SshCompression newInstance(java.lang.String algorithmName)
                                  throws AlgorithmNotSupportedException

Create a new instance of the compression method.

Parameters:
algorithmName - The compression algorithm to create
Returns:
The new instance
Throws:
AlgorithmNotSupportedException - Thrown if the algorithm is not supported


Copyright © 2002 Sshtools.com. All Rights Reserved.