public class FTPFileSystem extends WebFileSystem
FileSystem.DirectoryEntry, FileSystem.FileSystemOfflineException
HTTP_CHECK_TIMESTAMP_LIMIT_MS, id, LISTING_TIMEOUT_MS, localRoot, logger, MEMORY_LISTING_TIMEOUT_MS, offline, offlineMessage, offlineResponseCode, PROP_OFFLINE, PROP_READ_ONLY_CACHE, protocol
loggerUrl, NULL, PROP_CASE_INSENSITIVE, properties
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
downloadFile(java.lang.String filename,
java.io.File targetFile,
java.io.File partFile,
ProgressMonitor monitor)
Transfers the file from the remote store to a local copy f.
|
boolean |
isDirectory(java.lang.String filename)
return true if the name refers to a directory, not a file.
|
java.lang.String[] |
listDirectory(java.lang.String directory)
return the directory listing for the name.
|
addPropertyChangeListener, addRoCacheEntries, cacheListing, consumeStream, copyStream, getDownloadDirectory, getDownloadLock, getFileObject, getLastAccessed, getLocalName, getLocalName, getLocalRoot, getLocalRootAbsPath, getOfflineMessage, getOfflineResponseCode, getPartFile, getProtocol, getReadOnlyCache, getRootURL, getURI, getURL, isAppletMode, isGitClone, isListingCached, isOffline, listDirectory, listDirectoryFromMemory, listingFile, localRoot, maybeUpdateDirectoryEntry, removePropertyChangeListener, resetListCache, resetListingCache, setAppletMode, setOffline, setReadOnlyCache, toString
create, create, create, create, create, create, createFileSystem, getExceptionHandler, getListing, getListing, getProperty, getRootURI, listDirectory, listDirectory, listDirectoryDeep, peek, peekInstances, recreate, recreate, registerFileSystemFactory, reset, reset, setExceptionHandler, settings, splitUrl, toCanonicalFilename, toCanonicalFolderName, toCanonicalFolderName
public boolean isDirectory(java.lang.String filename)
WebFileSystem
isDirectory
in class WebFileSystem
filename
- the namepublic java.lang.String[] listDirectory(java.lang.String directory)
WebFileSystem
listDirectory
in class WebFileSystem
directory
- the directory name within the filesystem.protected java.util.Map<java.lang.String,java.lang.String> downloadFile(java.lang.String filename, java.io.File targetFile, java.io.File partFile, ProgressMonitor monitor) throws java.io.IOException
WebFileSystem
downloadFile
in class WebFileSystem
filename
- the name of the file, relative to the filesystem.targetFile
- the file to where the file is downloaded.partFile
- the temporary file during download.monitor
- progress monitorjava.io.IOException
WebProtocol.getMetadata(org.das2.util.filesystem.WebFileObject)