public final class FTPBeanFileSystem extends WebFileSystem
FileSystem.DirectoryEntry, FileSystem.FileSystemOfflineExceptionHTTP_CHECK_TIMESTAMP_LIMIT_MS, id, LISTING_TIMEOUT_MS, localRoot, MEMORY_LISTING_TIMEOUT_MS, offline, offlineMessage, offlineResponseCode, PROP_OFFLINE, PROP_READ_ONLY_CACHE, protocolloggerUrl, 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, toStringcreate, 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, toCanonicalFolderNameprotected FtpBean getFtpBean()
public boolean isDirectory(java.lang.String filename)
throws java.io.IOException
WebFileSystemisDirectory in class WebFileSystemfilename - the namejava.io.IOExceptionprotected FileSystem.DirectoryEntry[] parseLslNew(java.lang.String dir, java.io.File listing) throws java.io.IOException
dir - listing - java.io.IOExceptionpublic final java.lang.String[] listDirectory(java.lang.String directory)
throws java.io.IOException
WebFileSystemlistDirectory in class WebFileSystemdirectory - the directory name within the filesystem.java.io.IOExceptionfor listings constrained by regular expressions.protected void uploadFile(java.lang.String filename,
java.io.File srcFile,
ProgressMonitor mon)
throws java.io.IOException
java.io.IOExceptionprotected 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
WebFileSystemdownloadFile in class WebFileSystemfilename - 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.IOExceptionWebProtocol.getMetadata(org.das2.util.filesystem.WebFileObject)public FileObject getFileObject(java.lang.String filename)
WebFileSystemgetFileObject in class WebFileSystemfilename - the name of the file within the filesystem.protected static final java.util.logging.Logger getLogger()