public class SftpFileSystem extends AbstractFileSystem implements FileSystem
| Modifier | Constructor and Description |
|---|---|
protected |
SftpFileSystem(GenericFileName rootName,
com.jcraft.jsch.Session session,
FileSystemOptions fileSystemOptions) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCapabilities(java.util.Collection caps)
Adds the capabilities of this file system.
|
protected FileObject |
createFile(FileName name)
Creates a file object.
|
protected void |
doCloseCommunicationLink()
Close the underlaying link used to access the files
|
protected com.jcraft.jsch.ChannelSftp |
getChannel()
Returns an SFTP channel to the server.
|
double |
getLastModTimeAccuracy()
last mod time is only a int and in seconds, thus can be off by 999
|
protected void |
putChannel(com.jcraft.jsch.ChannelSftp channel)
Returns a channel to the pool.
|
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributegetContext, getLogger, setContext, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributeprotected SftpFileSystem(GenericFileName rootName, com.jcraft.jsch.Session session, FileSystemOptions fileSystemOptions)
protected void doCloseCommunicationLink()
AbstractFileSystemdoCloseCommunicationLink in class AbstractFileSystemprotected com.jcraft.jsch.ChannelSftp getChannel()
throws java.io.IOException
java.io.IOExceptionprotected void putChannel(com.jcraft.jsch.ChannelSftp channel)
protected void addCapabilities(java.util.Collection caps)
addCapabilities in class AbstractFileSystemprotected FileObject createFile(FileName name) throws FileSystemException
createFile in class AbstractFileSystemFileSystemExceptionpublic double getLastModTimeAccuracy()
getLastModTimeAccuracy in interface FileSystemgetLastModTimeAccuracy in class AbstractFileSystem