com.mucommander.file.impl.sftp
Class SFTPProtocolProvider

java.lang.Object
  extended by com.mucommander.file.impl.sftp.SFTPProtocolProvider
All Implemented Interfaces:
ProtocolProvider

public class SFTPProtocolProvider
extends java.lang.Object
implements ProtocolProvider

This class is the provider for the FTP filesystem implemented by FTPFile.

Author:
Nicolas Rinaudo, Maxence Bernard
See Also:
SFTPFile

Constructor Summary
SFTPProtocolProvider()
           
 
Method Summary
 AbstractFile getFile(FileURL url)
          Creates a new instance of AbstractFile that matches the specified URL.
static boolean isAvailable()
          Returns true if SFTP support is available under the current runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFTPProtocolProvider

public SFTPProtocolProvider()
Method Detail

getFile

public AbstractFile getFile(FileURL url)
                     throws java.io.IOException
Description copied from interface: ProtocolProvider
Creates a new instance of AbstractFile that matches the specified URL.

Specified by:
getFile in interface ProtocolProvider
Parameters:
url - URL to map as an AbstractFile.
Returns:
a new instance of AbstractFile that matches the specified URL.
Throws:
java.io.IOException - if an error occurs.

isAvailable

public static boolean isAvailable()
Returns true if SFTP support is available under the current runtime. SFTP support currently requires Java 1.5 or higher.

Returns:
true if SFTP support is available under the current runtime


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard