Modifier and Type | Field and Description |
---|---|
protected FileSystemOptions |
fileSystemOptions |
Modifier | Constructor and Description |
---|---|
protected |
FTPClientWrapper(GenericFileName root,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
boolean |
abort() |
OutputStream |
appendFileStream(String relPath) |
boolean |
completePendingCommand() |
protected org.apache.commons.net.ftp.FTPClient |
createClient(GenericFileName rootName,
UserAuthenticationData authData) |
boolean |
deleteFile(String relPath) |
void |
disconnect() |
FileSystemOptions |
getFileSystemOptions() |
int |
getReplyCode() |
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,
int bufferSize) |
InputStream |
retrieveFileStream(String relPath,
long restartOffset) |
void |
setBufferSize(int bufferSize) |
OutputStream |
storeFileStream(String relPath) |
protected final FileSystemOptions fileSystemOptions
protected FTPClientWrapper(GenericFileName root, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemException
public boolean abort() throws IOException
abort
in interface FtpClient
IOException
public OutputStream appendFileStream(String relPath) throws IOException
appendFileStream
in interface FtpClient
IOException
public boolean completePendingCommand() throws IOException
completePendingCommand
in interface FtpClient
IOException
protected org.apache.commons.net.ftp.FTPClient createClient(GenericFileName rootName, UserAuthenticationData authData) throws FileSystemException
FileSystemException
public boolean deleteFile(String relPath) throws IOException
deleteFile
in interface FtpClient
IOException
public void disconnect() throws IOException
disconnect
in interface FtpClient
IOException
public FileSystemOptions getFileSystemOptions()
public int getReplyCode() throws IOException
getReplyCode
in interface FtpClient
IOException
public String getReplyString() throws IOException
getReplyString
in interface FtpClient
IOException
public GenericFileName getRoot()
public boolean isConnected() throws FileSystemException
isConnected
in interface FtpClient
FileSystemException
public org.apache.commons.net.ftp.FTPFile[] listFiles(String relPath) throws IOException
listFiles
in interface FtpClient
IOException
public boolean makeDirectory(String relPath) throws IOException
makeDirectory
in interface FtpClient
IOException
public boolean removeDirectory(String relPath) throws IOException
removeDirectory
in interface FtpClient
IOException
public boolean rename(String oldName, String newName) throws IOException
rename
in interface FtpClient
IOException
public InputStream retrieveFileStream(String relPath) throws IOException
retrieveFileStream
in interface FtpClient
IOException
public InputStream retrieveFileStream(String relPath, int bufferSize) throws IOException
retrieveFileStream
in interface FtpClient
IOException
public InputStream retrieveFileStream(String relPath, long restartOffset) throws IOException
retrieveFileStream
in interface FtpClient
IOException
public void setBufferSize(int bufferSize) throws FileSystemException
setBufferSize
in interface FtpClient
FileSystemException
public OutputStream storeFileStream(String relPath) throws IOException
storeFileStream
in interface FtpClient
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.