| |
|
| java.lang.Object com.enterprisedt.net.ftp.AdvancedSettings
All known Subclasses: com.enterprisedt.net.ftp.AdvancedFTPSettings,
AdvancedSettings | public class AdvancedSettings (Code) | | Holds advanced configuration options not likely to be used for
basic FTP operations. These options must be set prior to establishing
connections, otherwise they have no effect until a new connection is made.
author: Bruce Blackshaw version: $Revision: 1.2 $ |
AdvancedSettings | protected AdvancedSettings(ConnectionContext context)(Code) | | Constructor
Parameters: context - context that settings are kept in |
getControlEncoding | public String getControlEncoding()(Code) | | Get the encoding used for the control channel
Returns the current controlEncoding. |
getListenOnAllInterfaces | public boolean getListenOnAllInterfaces()(Code) | | Are we listening on all interfaces in active mode, which is the default?
true if listening on all interfaces, false if listening just on the control interface |
getTransferBufferSize | public int getTransferBufferSize()(Code) | | Get the size of the data buffers used in reading and writing to the server
transfer buffer size |
getTransferNotifyInterval | public int getTransferNotifyInterval()(Code) | | Get the interval used for progress notification of transfers.
number of bytes between each notification. |
isAutoLogin | public boolean isAutoLogin()(Code) | | Determine if auto login is switched on
true if auto login |
isDeleteOnFailure | public boolean isDeleteOnFailure()(Code) | | If true, delete partially written files when exceptions are thrown
during a download
true if delete local file on error |
setAutoLogin | public void setAutoLogin(boolean autoLogin)(Code) | | Set the autoLogin flag
Parameters: autoLogin - true if logging in automatically |
setControlEncoding | public void setControlEncoding(String controlEncoding)(Code) | | Set the control channel encoding.
Parameters: controlEncoding - The controlEncoding to set, which is the name of a Charset |
setDeleteOnFailure | public void setDeleteOnFailure(boolean deleteOnFailure)(Code) | | Switch on or off the automatic deletion of partially written files
that are left when an exception is thrown during a download
Parameters: deleteOnFailure - true if delete when a failure occurs |
setListenOnAllInterfaces | public void setListenOnAllInterfaces(boolean listenOnAll)(Code) | | Listen on all interfaces for active mode transfers (the default).
Parameters: listenOnAll - true if listen on all interfaces, false to listen on the control interface |
setTransferBufferSize | public void setTransferBufferSize(int size)(Code) | | Set the size of the data buffers used in reading and writing to the server
Parameters: size - new size of buffer in bytes |
setTransferNotifyInterval | public void setTransferNotifyInterval(int notifyInterval)(Code) | | Set the interval used for progress notification of transfers.
Parameters: notifyInterval - number of bytes between each notification |
|
|
|