java ftp笔记

1,commons-net ftpclient 怎么判断服务器是否存在文件A?
FTPFile[]   ftpFiles   =   ftp.listFiles("a");  
  System.out.println(ftpFiles.length);

2,http://www.blogjava.net/sterning/archive/2007/10/22/154861.html

3,乱码问题.
应用服务器在unix上,ftp在window上,下载时换行处可能有问题,
 解决:将文件传输类型设置为二进制
     ftpClient.setFileType( FTP.BINARY_FILE_TYPE );
 见
public InputStream retrieveFileStream( String path)方法的注释:
If the current file type is ASCII, the returned InputStream will convert line separators in the file to
the local representation.
commons.net包中的FTPClient.listFiles()方法返回null的问题及其解决方案
http://hi.baidu.com/3seefans/blog/item/667e32afa0a58bc97cd92aa2.html
http://hi.baidu.com/hzwei206/blog/item/7c901d2debf7e136359bf7cd.html
 
6,
http://zjsoft.javaeye.com/blog/189874
http://topic.csdn.net/t/20050820/13/4220332.html
http://www.cnblogs.com/swingboat/archive/2005/05/31/165613.html
http://www.onflex.org/ted/2007/05/flexftp-ftp-client-in-flex-using.php
http://tech.it168.com/j/2007-10-18/200710182058687.shtml
http://hi.baidu.com/3seefans/blog/item/667e32afa0a58bc97cd92aa2.html

你可能感兴趣的:(java ftp笔记)