public 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 void |
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.
|
FileSystem.DirectoryEntry[] |
parseLsl(java.lang.String dir,
java.io.File listing)
Deprecated.
use parseLslNew
|
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, getReadOnlyCache, getRootURL, getURI, getURL, isAppletMode, 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 FileSystem.DirectoryEntry[] parseLsl(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.IOExceptionprotected void uploadFile(java.lang.String filename,
java.io.File srcFile,
ProgressMonitor mon)
throws java.io.IOException
java.io.IOExceptionprotected void 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.IOExceptionpublic 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()