public final class FTPBeanFileSystem extends WebFileSystem
FileSystem.DirectoryEntry, FileSystem.FileSystemOfflineException
HTTP_CHECK_TIMESTAMP_LIMIT_MS, id, LISTING_TIMEOUT_MS, localRoot, 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 mon)
Transfers the file from the remote store to a local copy f.
|
FileObject |
getFileObject(java.lang.String filename)
Return the handle for this file.
|
protected FtpBean |
getFtpBean() |
protected static java.util.logging.Logger |
getLogger() |
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.
|
protected FileSystem.DirectoryEntry[] |
parseLslNew(java.lang.String dir,
java.io.File listing)
use open source library that supports several formats for list result.
|
protected void |
uploadFile(java.lang.String filename,
java.io.File srcFile,
ProgressMonitor mon) |
addPropertyChangeListener, addRoCacheEntries, cacheListing, consumeStream, copyStream, getDownloadDirectory, getDownloadLock, 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
protected FtpBean getFtpBean()
public boolean isDirectory(java.lang.String filename) throws java.io.IOException
WebFileSystem
isDirectory
in class WebFileSystem
filename
- the namejava.io.IOException
protected FileSystem.DirectoryEntry[] parseLslNew(java.lang.String dir, java.io.File listing) throws java.io.IOException
dir
- listing
- java.io.IOException
public final java.lang.String[] listDirectory(java.lang.String directory) throws java.io.IOException
WebFileSystem
listDirectory
in class WebFileSystem
directory
- the directory name within the filesystem.java.io.IOException
protected void uploadFile(java.lang.String filename, java.io.File srcFile, ProgressMonitor mon) throws java.io.IOException
java.io.IOException
protected java.util.Map<java.lang.String,java.lang.String> downloadFile(java.lang.String filename, java.io.File targetFile, java.io.File partFile, ProgressMonitor mon) 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.mon
- progress monitorjava.io.IOException
WebProtocol.getMetadata(org.das2.util.filesystem.WebFileObject)
public FileObject getFileObject(java.lang.String filename)
WebFileSystem
getFileObject
in class WebFileSystem
filename
- the name of the file within the filesystem.protected static final java.util.logging.Logger getLogger()