java.lang.Object cz.dhl.ftp.FtpSetting
Wrapper for FTP client settings.
Ftp
Field Summary | |
static int |
LIST
ListCommandMode option, gives detailed information on file but might not work well on other than implemented server systems. |
static int |
NAME_LIST
ListCommandMode option, lists only filenames using FTP NLST command. |
static int |
NAME_LIST_LS_F
ListCommandMode option, similar to NAME_LIST except directories, executables and special files are recognized. |
static int |
NAME_LIST_LS_LA
ListCommandMode option, gives detailed information on file. |
static int |
NAME_LIST_LS_P
ListCommandMode option, similar to NAME_LIST except directories are recognized. |
Constructor Summary | |
FtpSetting()
|
Method Summary | |
boolean |
getActiveSocketMode()
Get active socket mode. |
char |
getFileTransferMode()
Gets transfer mode. |
int |
getListCommandMode()
Gets type of list command used. |
void |
setActiveSocketMode(boolean activesocketmode)
Sets active socket mode. |
void |
setFileTransferMode(char filetransfermode)
Sets transfer mode. |
void |
setListCommandMode(int listcommandmode)
Sets type of list command used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LIST
Traditional UNIX system:
% ll
-rw-r--r-- 1 owner group 239 Nov 9 1998 file
drw-r--r-- 1 owner group 58 Nov 12 13:51 dir
MS Windows system:
C:\> dir
10-16-01 11:35PM 1479 file
10-16-01 11:37PM
public static final int NAME_LIST
Warning! Directories are recognized by not containing a dot (.) letter and might not correspond to real directories.
public static final int NAME_LIST_LS_F
Might not work well on other than UNIX server systems.
% ls -F
public static final int NAME_LIST_LS_LA
Might not work well on other than UNIX server systems.
% ls -la
-rw-r--r-- 1 owner group 239 Nov 9 1998 file
drw-r--r-- 1 owner group 58 Nov 12 13:51 folder
public static final int NAME_LIST_LS_P
Might not work well on other than UNIX server systems.
% ls -p
Constructor Detail |
public FtpSetting()
Method Detail |
public boolean getActiveSocketMode()
public char getFileTransferMode()
public int getListCommandMode()
LIST
,
NAME_LIST
,
NAME_LIST_LS_P
,
NAME_LIST_LS_F
,
NAME_LIST_LS_LA
public void setActiveSocketMode(boolean activesocketmode)
activesocketmode
- true stands for active socket /
false for pasive socketpublic void setFileTransferMode(char filetransfermode)
filetransfermode
- must be one of following optional values;
'A'=ASCII, 'I'=BINARY files, 'S'=Smart;
smart mode evaluates transfer mode by current TextFilter settingspublic void setListCommandMode(int listcommandmode)
listcommandmode
- must be one of following optional values;LIST
,
NAME_LIST
,
NAME_LIST_LS_P
,
NAME_LIST_LS_F
,
NAME_LIST_LS_LA