com.myJava.file.driver.remote.ftp
Class FTPFileSystemDriver

java.lang.Object
  extended by com.myJava.file.driver.AbstractFileSystemDriver
      extended by com.myJava.file.driver.remote.AbstractRemoteFileSystemDriver
          extended by com.myJava.file.driver.remote.ftp.FTPFileSystemDriver
All Implemented Interfaces:
FileSystemDriver

public class FTPFileSystemDriver
extends AbstractRemoteFileSystemDriver

File System driver which is connected to a FTP Server.

The Following methods are not supported :
- public boolean canRead(File file) --> Not supported
- public boolean canWrite(File file) --> Not supported
- public long lastModified(File file); --> Not supported
- public boolean setLastModified(File file, long time); --> Not supported
- public boolean setReadOnly(File file); --> Not supported
- public boolean mkdirs(File file); --> Not supported
- public boolean isHidden(File file); --> Not supported
- public Permission getPermissions(File file); --> Not supported
- public void applyPermissions(Permissions p, File f); --> Not supported

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
protected  java.lang.String remoteRootDirectory
           
 
Fields inherited from class com.myJava.file.driver.remote.AbstractRemoteFileSystemDriver
alternateProxies, BUFFER_SIZE, localInputFiles, localRootDirectory, maxProxies, proxy, strLocalRootDirectory, USE_BUFFER
 
Fields inherited from class com.myJava.file.driver.AbstractFileSystemDriver
CHECK_PATH
 
Fields inherited from interface com.myJava.file.driver.FileSystemDriver
ACCESS_EFFICIENCY_AVERAGE, ACCESS_EFFICIENCY_GOOD, ACCESS_EFFICIENCY_POOR
 
Constructor Summary
FTPFileSystemDriver(FTPProxy ftpProxy, java.io.File localRoot, java.lang.String remoteRoot)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
protected  java.lang.String translateToLocal(java.lang.String remoteFile)
           
protected  java.lang.String translateToRemote(java.io.File localFile)
           
 
Methods inherited from class com.myJava.file.driver.remote.AbstractRemoteFileSystemDriver
buildNewOwnerId, canRead, canWrite, createNewFile, delete, directFileAccessSupported, disconnect, exists, flush, getAbsoluteFile, getAbsolutePath, getAccessEfficiency, getAvailableProxy, getCachedFileInputStream, getCachedFileOutputStream, getCanonicalFile, getCanonicalPath, getFictiveLocalFile, getFileInputStream, getFileOutputStream, getFileOutputStream, getFileOutputStream, getInformations, getName, getNormalizedLocalRoot, getParent, getParentFile, getPath, initFictiveLocalFile, isAbsolute, isContentSensitive, isDirectory, isFile, lastModified, length, list, list, listFiles, listFiles, listFiles, mkdir, mount, releaseProxy, removeLocalInputFile, renameTo, supportsLongFileNames, unmount
 
Methods inherited from class com.myJava.file.driver.AbstractFileSystemDriver
applyMetaData, checkFilePath, createSymbolicLink, deleteOnExit, getMetaData, isHidden, mkdirs, normalizeIfNeeded, setLastModified, setReadOnly
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

remoteRootDirectory

protected java.lang.String remoteRootDirectory
Constructor Detail

FTPFileSystemDriver

public FTPFileSystemDriver(FTPProxy ftpProxy,
                           java.io.File localRoot,
                           java.lang.String remoteRoot)
Method Detail

translateToRemote

protected java.lang.String translateToRemote(java.io.File localFile)
Specified by:
translateToRemote in class AbstractRemoteFileSystemDriver

translateToLocal

protected java.lang.String translateToLocal(java.lang.String remoteFile)
Specified by:
translateToLocal in class AbstractRemoteFileSystemDriver

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object