| Constructor and Description |
|---|
AbstractFtpClientWrapper(GenericFileName root,
FileSystemOptions fileSystemOptions,
Integer defaultTimeout) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
OutputStream |
appendFileStream(String relPath) |
boolean |
completePendingCommand() |
protected abstract org.apache.commons.net.ftp.FTPClient |
createClient() |
boolean |
deleteFile(String relPath) |
void |
disconnect() |
protected Integer |
getDefaultTimeout() |
FileSystemOptions |
getFileSystemOptions() |
String |
getReplyString() |
GenericFileName |
getRoot() |
boolean |
isConnected() |
org.apache.commons.net.ftp.FTPFile[] |
listFiles(String relPath) |
boolean |
makeDirectory(String relPath) |
boolean |
removeDirectory(String relPath) |
boolean |
rename(String oldName,
String newName) |
InputStream |
retrieveFileStream(String relPath) |
InputStream |
retrieveFileStream(String relPath,
long restartOffset) |
OutputStream |
storeFileStream(String relPath) |
public AbstractFtpClientWrapper(GenericFileName root, FileSystemOptions fileSystemOptions, Integer defaultTimeout) throws FileSystemException
FileSystemExceptionpublic GenericFileName getRoot()
public FileSystemOptions getFileSystemOptions()
protected Integer getDefaultTimeout()
protected abstract org.apache.commons.net.ftp.FTPClient createClient()
throws FileSystemException
FileSystemExceptionpublic boolean isConnected()
throws FileSystemException
isConnected in interface FtpClientFileSystemExceptionpublic void disconnect()
throws IOException
disconnect in interface FtpClientIOExceptionpublic org.apache.commons.net.ftp.FTPFile[] listFiles(String relPath) throws IOException
listFiles in interface FtpClientIOExceptionpublic boolean removeDirectory(String relPath) throws IOException
removeDirectory in interface FtpClientIOExceptionpublic boolean deleteFile(String relPath) throws IOException
deleteFile in interface FtpClientIOExceptionpublic boolean rename(String oldName, String newName) throws IOException
rename in interface FtpClientIOExceptionpublic boolean makeDirectory(String relPath) throws IOException
makeDirectory in interface FtpClientIOExceptionpublic boolean completePendingCommand()
throws IOException
completePendingCommand in interface FtpClientIOExceptionpublic InputStream retrieveFileStream(String relPath) throws IOException
retrieveFileStream in interface FtpClientIOExceptionpublic InputStream retrieveFileStream(String relPath, long restartOffset) throws IOException
retrieveFileStream in interface FtpClientIOExceptionpublic OutputStream appendFileStream(String relPath) throws IOException
appendFileStream in interface FtpClientIOExceptionpublic OutputStream storeFileStream(String relPath) throws IOException
storeFileStream in interface FtpClientIOExceptionpublic boolean abort()
throws IOException
abort in interface FtpClientIOExceptionpublic String getReplyString() throws IOException
getReplyString in interface FtpClientIOExceptionCopyright © 2002–2024 WSO2. All rights reserved.