public interface FtpClient
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
OutputStream |
appendFileStream(String relPath) |
boolean |
completePendingCommand() |
boolean |
deleteFile(String relPath) |
void |
disconnect() |
default int |
getReplyCode() |
String |
getReplyString() |
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) |
default InputStream |
retrieveFileStream(String relPath,
int bufferSize) |
InputStream |
retrieveFileStream(String relPath,
long restartOffset) |
default void |
setBufferSize(int bufferSize) |
OutputStream |
storeFileStream(String relPath) |
boolean abort()
throws IOException
IOExceptionOutputStream appendFileStream(String relPath) throws IOException
IOExceptionboolean completePendingCommand()
throws IOException
IOExceptionboolean deleteFile(String relPath) throws IOException
IOExceptionvoid disconnect()
throws IOException
IOExceptiondefault int getReplyCode()
throws IOException
IOExceptionString getReplyString() throws IOException
IOExceptionboolean isConnected()
throws FileSystemException
FileSystemExceptionorg.apache.commons.net.ftp.FTPFile[] listFiles(String relPath) throws IOException
IOExceptionboolean makeDirectory(String relPath) throws IOException
IOExceptionboolean removeDirectory(String relPath) throws IOException
IOExceptionboolean rename(String oldName, String newName) throws IOException
IOExceptionInputStream retrieveFileStream(String relPath) throws IOException
IOExceptiondefault InputStream retrieveFileStream(String relPath, int bufferSize) throws IOException
IOExceptionInputStream retrieveFileStream(String relPath, long restartOffset) throws IOException
IOExceptiondefault void setBufferSize(int bufferSize)
throws FileSystemException
FileSystemExceptionOutputStream storeFileStream(String relPath) throws IOException
IOExceptionCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.