①通过ftp远程获取文件
public boolean getftp(String host, String login, String pass,
String remoteFile, String localFile, String filename)throws Exception {
boolean resultFlg = false;
FtpClient ftp = new FtpClient();
try {
ftp.openServer(host);
try {
ftp.login(login, pass);
ftp.binary();
OutputStream out = new FileOutputStream(localFile);
TelnetInputStream ftpIn = ftp.get(remoteFile);
byte[] buff = new byte[204800];
int len = 0;
try {
while ((len = ftpIn.read(buff)) != -1) {
out.write(buff, 0, len);
resultFlg = true;
}