FTP File Transfer Protocol
suggest changeSyntax
These methods are on Apache Commons Net org.apache.commons.net.ftp.FTPClient. The I/O methods throw IOException. getReplyStrings does not.
void connect(String hostname, int port)boolean login(String username, String password)void disconnect()String[] getReplyStrings()boolean storeFile(String remote, InputStream local)OutputStream storeFileStream(String remote)boolean setFileType(int fileType)boolean completePendingCommand()
Parameters
| Parameter | Details |
|---|---|
| hostname | Either the host name or IP address of the FTP server |
| port | The FTP server port |
| username | The FTP server username |
| password | The FTP server password |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents