public abstract class FileTransferClientImp extends java.lang.Object implements FileTransferClient
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logR |
Constructor and Description |
---|
FileTransferClientImp() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
dir(java.lang.String directory,
java.io.FilenameFilter filter)
List a directory's contents
|
protected java.io.FileFilter |
ensureNotNull(java.io.FileFilter f) |
protected boolean |
isAdditionaDebug() |
protected void |
log(java.lang.String msg,
java.lang.Object... params) |
void |
setAdditionalDebug(boolean on)
Switch additional debug on or off
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
chdir, close, connect, delete, dir, dir, dir, dir, disconnect, get, get, get, getKeepAliveTimeout, isConnected, lastModified, lastModifiedDate, mkdir, put, put, put, put, put, put, rename, rmdir, setKeepAliveTimeout
public java.lang.String[] dir(java.lang.String directory, java.io.FilenameFilter filter) throws FileTransferException, java.io.IOException
FileTransferClient
Note that although we use a standard FileFilter
interface here operating on
File
; it actually uses RemoteFile
instead which overrides information
that can be obtained from the remote server. Other standard File
operations will
not be supported, and may ultimately cause a runtime exception.
dir
in interface FileTransferClient
directory
- the directory to list.filter
- the filefilter mask to useFileTransferException
- on FTP Specific exception error.java.io.IOException
- on comms error.FileTransferClient.dir(java.lang.String, java.io.FilenameFilter)
public void setAdditionalDebug(boolean on)
FileTransferClient
setAdditionalDebug
in interface FileTransferClient
on
- set to true if you wish to get some additional debugging in the log file, defaults to
falseprotected boolean isAdditionaDebug()
protected void log(java.lang.String msg, java.lang.Object... params)
protected java.io.FileFilter ensureNotNull(java.io.FileFilter f)