|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.protocols.FTPClient
public class FTPClient
Constructor Summary | |
---|---|
FTPClient()
|
Method Summary | |
---|---|
void |
checkComplete()
|
void |
connect(String host,
int port)
|
String |
cwd(String cwd)
|
void |
deleteFile(String remoteFile)
|
String[] |
dir()
|
String[] |
dir(String path,
boolean longlisting)
|
void |
disconnect()
|
boolean |
getDebug()
|
Socket |
getFile(String remoteFile,
boolean binary)
|
void |
getFile(String remoteFile,
String localFile,
boolean binary)
|
String |
getResponse()
|
boolean |
getUsePassive()
Returns true if we should try to use passive mode. |
String[] |
list()
|
Socket |
list(String path,
boolean longlisting)
|
void |
login(String user,
String password)
|
Socket |
putFile(String remoteFile,
boolean binary)
|
void |
putFile(String localPath,
String remoteFile,
boolean binary)
|
String |
pwd()
Get the current remote working directory |
void |
rename(String from,
String to)
Rename a file or directory |
String |
sendCommand(String cmd)
|
void |
setDebug(boolean debug)
|
void |
setTimeout(int millis)
|
void |
setTransferMode(boolean binary)
|
void |
setupDataSocket()
|
void |
setUsePassive(boolean value)
Sets this FTPClient to use passive mode (or not) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FTPClient()
Method Detail |
---|
public void setTimeout(int millis)
public void setDebug(boolean debug)
public boolean getDebug()
public void connect(String host, int port) throws Exception
Exception
public void disconnect()
public void login(String user, String password) throws Exception
Exception
public String cwd(String cwd) throws Exception
Exception
public void setupDataSocket() throws Exception
Exception
public Socket getFile(String remoteFile, boolean binary) throws Exception
Exception
public void getFile(String remoteFile, String localFile, boolean binary) throws Exception
Exception
public Socket putFile(String remoteFile, boolean binary) throws Exception
Exception
public void putFile(String localPath, String remoteFile, boolean binary) throws Exception
Exception
public void setTransferMode(boolean binary) throws Exception
Exception
public void deleteFile(String remoteFile) throws Exception
Exception
public void rename(String from, String to) throws Exception
from
- name of file or directory to renameto
- intended name
Exception
public String pwd() throws Exception
Exception
public String sendCommand(String cmd) throws Exception
Exception
public String[] dir() throws Exception
Exception
public String[] list() throws Exception
Exception
public String[] dir(String path, boolean longlisting) throws Exception
Exception
public void checkComplete() throws Exception
Exception
public Socket list(String path, boolean longlisting) throws Exception
Exception
public String getResponse() throws Exception
Exception
public void setUsePassive(boolean value)
value
- If true, try to use passive mode before falling back to the old PORT mode. If false, never use passive mode.public boolean getUsePassive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |