|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.net.ftp.FtpClient
public class FtpClient
An FTP client.
| Constructor Summary | |
|---|---|
FtpClient(java.io.InputStream controlIn,
java.io.OutputStream controlOut,
java.net.InetAddress controlLocalAddress)
|
|
| Method Summary | |
|---|---|
void |
active(int port)
|
void |
changeWorkingDirectory(java.lang.String directory)
Changes the remote working directory. |
void |
dispose()
Releases all resources associated with the connection to the FTP server, specifically an open data connection. |
void |
login(java.lang.String user,
java.lang.String password)
Logs in to the remote FTP server. |
void |
passive()
Switches fro ACTIVE to PASSIVE mode. |
java.io.InputStream |
retrieve(java.lang.String fileName)
The caller is responsible for closing the returned InputStream. |
void |
setDataConnectionAcceptTimeout(int dataConnectionAcceptTimeout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FtpClient(java.io.InputStream controlIn,
java.io.OutputStream controlOut,
java.net.InetAddress controlLocalAddress)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void setDataConnectionAcceptTimeout(int dataConnectionAcceptTimeout)
ServerSocket.setSoTimeout(int)
public void login(java.lang.String user,
java.lang.String password)
throws java.io.IOException
java.io.IOException
public void changeWorkingDirectory(java.lang.String directory)
throws java.io.IOException
java.io.IOException
public void passive()
throws java.io.IOException
java.io.IOException
public void active(int port)
throws java.io.IOException
port - Pass 0 to pick an ephemeral port.
java.io.IOException
public java.io.InputStream retrieve(java.lang.String fileName)
throws java.io.IOException
InputStream.
java.io.IOExceptionpublic void dispose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||