####### }
####### ftpclient.binary();
### }
### /**
#### * 取得指定目录下的所有文件名,不包括目录名称
#### * 分析 nameList 得到的输入流中的数,得到指定目录下的所有文件名
#### * @param fullPath String
#### * @return ArrayList
#### * @throws Exception
#### */
### public ArrayList fileNames(String fullPath) throws Exception {
####### ftpclient.ascii(); //注意,使用字符模式
####### TelnetInputStream list = ftpclient.nameList(fullPath);
####### byte[] names = new byte[2048];
####### int bufsize = 0;
####### bufsize = list.read(names, 0, names.length); //从流中读取
####### list.close();
####### ArrayList namesList = new ArrayList();
####### int i = 0;
####### int j = 0;
####### while (i < bufsize /*names.length*/) {
########### //char bc = (char) names;
########### //System.out.println(i + "# " + bc + " : " + (int) names);
########### //i = i + 1;
########### if (names[i] == 10) { //字符模式为 10,二进制模式为 13
############### //文件名在数据中开始下标为 j,i-j 为文件名的长度,文件名在数据中的结束下标为
i-1
############### //System.out.write(names, j, i - j);
############### //System.out.println(j + "## " + i + "### " + (i - j));