Class FTPFileSystem

  extended by org.das2.util.filesystem.FileSystem
      extended by org.das2.util.filesystem.WebFileSystem
          extended by org.das2.util.filesystem.FTPFileSystem

public class FTPFileSystem
extends WebFileSystem

Nested Class Summary
Nested classes/interfaces inherited from class org.das2.util.filesystem.FileSystem
FileSystem.DirectoryEntry, FileSystem.FileSystemOfflineException
Field Summary
Fields inherited from class org.das2.util.filesystem.WebFileSystem
localRoot, offline, PROP_OFFLINE, protocol
Fields inherited from class org.das2.util.filesystem.FileSystem
logger, PROP_CASE_INSENSITIVE, properties
Method Summary
protected  void downloadFile(java.lang.String filename, targetFile, partFile, ProgressMonitor monitor)
          Transfers the file from the remote store to a local copy f.
 boolean isDirectory(java.lang.String filename)
 java.lang.String[] listDirectory(java.lang.String directory)
          returns a list of the names of the files in a directory.
Methods inherited from class org.das2.util.filesystem.WebFileSystem
addPropertyChangeListener, copyStream, getDownloadDirectory, getFileObject, getLocalName, getLocalName, getLocalRoot, getLocalRootAbsPath, getURL, isAppletMode, isOffline, listDirectory, localRoot, removePropertyChangeListener, setAppletMode, setOffline, toString
Methods inherited from class org.das2.util.filesystem.FileSystem
create, createFileSystem, getProperty, getRootURL, registerFileSystemFactory, settings, splitUrl, toCanonicalFilename, toCanonicalFolderName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Detail


public boolean isDirectory(java.lang.String filename)
Specified by:
isDirectory in class WebFileSystem


public java.lang.String[] listDirectory(java.lang.String directory)
Description copied from class: FileSystem
returns a list of the names of the files in a directory. Names ending in "/" are themselves directories, and the "/" is not part of the name. This is optional, and a directory may or may not be tagged with the trailing slash.

Specified by:
listDirectory in class WebFileSystem


protected void downloadFile(java.lang.String filename,
                            ProgressMonitor monitor)
Description copied from class: WebFileSystem
Transfers the file from the remote store to a local copy f. This should only be used within the class and subclasses, clients should use getFileObject( String ).getFile(). Subclasses implementing this should download data to partfile, then rename partfile to f after the download is complete.

Specified by:
downloadFile in class WebFileSystem
partFile - the temporary file during download.