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
IOException
OutputStream appendFileStream(String relPath) throws IOException
IOException
boolean completePendingCommand() throws IOException
IOException
boolean deleteFile(String relPath) throws IOException
IOException
void disconnect() throws IOException
IOException
default int getReplyCode() throws IOException
IOException
String getReplyString() throws IOException
IOException
boolean isConnected() throws FileSystemException
FileSystemException
org.apache.commons.net.ftp.FTPFile[] listFiles(String relPath) throws IOException
IOException
boolean makeDirectory(String relPath) throws IOException
IOException
boolean removeDirectory(String relPath) throws IOException
IOException
boolean rename(String oldName, String newName) throws IOException
IOException
InputStream retrieveFileStream(String relPath) throws IOException
IOException
default InputStream retrieveFileStream(String relPath, int bufferSize) throws IOException
IOException
InputStream retrieveFileStream(String relPath, long restartOffset) throws IOException
IOException
default void setBufferSize(int bufferSize) throws FileSystemException
FileSystemException
OutputStream storeFileStream(String relPath) throws IOException
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.