com.maverick.vfs.ssh
Class SftpFileSystem

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractVfsComponent
      extended by org.apache.commons.vfs2.provider.AbstractFileSystem
          extended by com.maverick.vfs.ssh.SftpFileSystem
All Implemented Interfaces:
org.apache.commons.vfs2.FileSystem, org.apache.commons.vfs2.provider.VfsComponent

public class SftpFileSystem
extends org.apache.commons.vfs2.provider.AbstractFileSystem


Constructor Summary
protected SftpFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName, SshClient ssh, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
           
 
Method Summary
protected  void addCapabilities(java.util.Collection<org.apache.commons.vfs2.Capability> caps)
           
protected  org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName name)
           
protected  void doCloseCommunicationLink()
           
protected  SftpClient getClient()
           
 java.lang.String getHome()
           
 double getLastModTimeAccuracy()
           
protected  void putClient(SftpClient sftp)
           
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpFileSystem

protected SftpFileSystem(org.apache.commons.vfs2.provider.GenericFileName rootName,
                         SshClient ssh,
                         org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
Method Detail

doCloseCommunicationLink

protected void doCloseCommunicationLink()
Overrides:
doCloseCommunicationLink in class org.apache.commons.vfs2.provider.AbstractFileSystem

getClient

protected SftpClient getClient()
                        throws java.io.IOException
Throws:
java.io.IOException

putClient

protected void putClient(SftpClient sftp)

addCapabilities

protected void addCapabilities(java.util.Collection<org.apache.commons.vfs2.Capability> caps)
Specified by:
addCapabilities in class org.apache.commons.vfs2.provider.AbstractFileSystem

createFile

protected org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName name)
                                                 throws org.apache.commons.vfs2.FileSystemException
Specified by:
createFile in class org.apache.commons.vfs2.provider.AbstractFileSystem
Throws:
org.apache.commons.vfs2.FileSystemException

getLastModTimeAccuracy

public double getLastModTimeAccuracy()
Specified by:
getLastModTimeAccuracy in interface org.apache.commons.vfs2.FileSystem
Overrides:
getLastModTimeAccuracy in class org.apache.commons.vfs2.provider.AbstractFileSystem

getHome

public java.lang.String getHome()


Copyright © 2012. All Rights Reserved.