Package javaforce
Class FTP
java.lang.Object
javaforce.FTP
FTP client class. Supports Passive and Active mode.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidaddProgressListener(FTP.ProgressListener progress) voidvoidvoidvoidbooleanbooleanconnectSSL(String host, int port) voidvoidvoidget(String filename, OutputStream os) voidvoidintbooleanvoidlogout()voidvoidvoidput(InputStream is, String filename) voidvoidpwd()voidvoidvoidbooleansetAscii()booleanvoidsetLogging(boolean state) voidsetPassiveMode(boolean mode)
-
Field Details
-
debug
public boolean debug -
response
Holds the repsonse strings from the last executed command
-
-
Constructor Details
-
FTP
public FTP()
-
-
Method Details
-
getResponseLength
public int getResponseLength() -
addResponse
-
getNextResponse
-
getLastResponse
-
connect
- Throws:
Exception
-
connectSSL
- Throws:
Exception
-
abort
public void abort() -
disconnect
- Throws:
Exception
-
addProgressListener
-
setLogging
public void setLogging(boolean state) -
setPassiveMode
public void setPassiveMode(boolean mode) -
setBinary
- Throws:
Exception
-
setAscii
- Throws:
Exception
-
login
- Throws:
Exception
-
logout
- Throws:
Exception
-
cmd
- Throws:
Exception
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
getStart
- Throws:
Exception
-
get
- Throws:
Exception
-
getFinish
- Throws:
Exception
-
put
- Throws:
Exception
-
put
- Throws:
Exception
-
put
- Throws:
Exception
-
putStart
- Throws:
Exception
-
putFinish
- Throws:
Exception
-
cd
- Throws:
Exception
-
chmod
- Throws:
Exception
-
mkdir
- Throws:
Exception
-
rename
- Throws:
Exception
-
rm
- Throws:
Exception
-
rmdir
- Throws:
Exception
-
ls
- Throws:
Exception
-
pwd
- Throws:
Exception
-