Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃjava±àд¶àÏß³Ìftp¶ÏµãÏÂÔØÎļþ³ÌÐò

×÷Õß : ÀîÖ¾ÌÎ
ÓÊÏäµØÖ· :lizhitao67116961@163.com
ÉîÛÚÓÅÍø¿Æ¼¼ÓÐÏÞ¹«Ë¾
 
Ç°¼¸Ìì¿´µ½ÓÐijλÍøÓÑдÁËÓÃhttp½øÐжϵãÏÂÔØÎļþ£¬µ«ÊÇÍøÉÏûÓп´µ½ftp¶ÏµãÏÂÔصÄÎÄÕ»ò´úÂ룬ÏÖÔÚ±¾ÈËдÁËһϡ£¾­¹ý²âÊÔûÓÐÎÊÌâ¡£Çë´ó¼Ò¶à¶àÖ¸½Ì¡£ÈçÓÐÊ詵ĵط½Çë¸÷λ¼¼ÊõÓÑÈËÖ¸³ö¡£±¾È˲»Ê¤¸Ð¼¤¡£
 
 
package test.download;
 
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.net.SocketException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
 
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPReply;
import org.apache.log4j.Logger;
 
import util.LogMgr;
 
public class TestProtocolFtp {
 
    private FTPClient FTP ;
    private String host ;
    private int port ;
    private String user ;
    private String pwd ;
    private String taskdate ;
    private boolean forceexit ;
 
    private static Logger log = LogMgr.getInstance ().getSystemLogger();
 
    public String toString() {
       return host + ":" + port + "@" + user + "/" + pwd ;
    }
 
    public boolean Login(String strHost, int nPort, String strUser,
           String strPwd) {
       host = strHost;
       port = nPort;
       user = strUser;
       pwd = strPwd;
 
   &


Ïà¹ØÎĵµ£º

javaÖÐhashcode()ºÍequals()µÄÏê½â(ת)

Ô­ÌùµØÖ·http://www.javaeye.com/topic/257191
½ñÌìÏÂÎçÑо¿ÁË°ëÌìhashcode()ºÍequals()·½·¨£¬ÖÕÓÚÓÐÁËÒ»µãµãµÄÃ÷°×£¬Ð´ÏÂÀ´Óë´ó¼Ò·ÖÏí£¨zhaoxudong
2008.10.23Íí21.36£©¡£
1. Ê×ÏÈequals()ºÍhashcode()ÕâÁ½¸ö·½·¨¶¼ÊÇ´ÓobjectÀàÖм̳йýÀ´µÄ¡£
equals()·½·¨ÔÚobjectÀàÖж¨ÒåÈçÏ£º
  public boolean equals( ......

ÉîÈëÀí½âJavaÃæÏò¶ÔÏóµÄÈý´ó»ù±¾ÌØÐÔ


Ò»¡¢¼Ì³Ð
1.¸ÅÄһ¸öÀà¼Ì³ÐÁíÒ»¸öÀ࣬Ôò³Æ¼Ì³ÐµÄÀàΪ×ÓÀ࣬±»¼Ì³ÐµÄÀàΪ¸¸Àà¡£
2.Ä¿µÄ£ºÊµÏÖ´úÂëµÄ¸´Óá£
3.Àí½â£º×ÓÀàÓ븸ÀàµÄ¹Øϵ²¢²»ÊÇÈÕ³£Éú»îÖеĸ¸×Ó¹Øϵ£¬×ÓÀàÓ븸Àà¶øÊÇÒ»ÖÖÌØÊ⻯ÓëÒ»°ã»¯µÄ¹Øϵ£¬ÊÇis-aµÄ¹Øϵ£¬×ÓÀàÊǸ¸Àà¸ü¼ÓÏêϸµÄ·ÖÀà¡£Èçclass dog extends animal,¾Í¿ÉÒÔÀí½âΪdog is a animal.×¢ÒâÉè¼ ......

ʹÓÿªÔ´²úÆ·´î½¨java¿ª·¢»·¾³

Ô­·¢±íÓÚhttp://saharabear.javaeye.com
 ºÍhttp://www.haulynjason.net(Ó¢)
ͬʱ·¢±íÔÚÕâÀï.
ÔÚÎÒÖÜΧ,ÓкܶàÈËÊÇJava³ÌÐòÔ±»òÕß¼ÆËã»úרҵµÄѧÉú.ÓÐʱ,ÎÒ°ïËûÃǵ÷ÊÔ³ÌÐòµÄʱºò,·¢ÏÖËûÃǵĻúÆ÷ÉÏ×ÜÊÇ°²×°×źܶàûÓÐÊÚȨµÄ¹¤¾ß,±ÈÈçµÁ°æµÄ
windows,ûÓÐLicenseµÄMyEclipseµÈ,ÉõÖÁÓÐһЩÈË·Ö²»ÇåeclipseºÍmyeclipse ......

Java ²¢·¢Ñ§Ï°


Ò»¡¢´´½¨ÈÎÎñ
 
ÈÎÎñ¿ÉÒÔÀí½âΪһ¶Î¶ÀÁ¢Ö´ÐеĴúÂ룬ËüÍê³ÉÒ»¶¨µÄ¹¦ÄÜ¡£
ÔÚJava 5¼°ÒÔÉÏ°æ±¾Öв»½ö¿ÉÒÔÀûÓà Runnable½Ó¿Ú£¬»¹¿ÉÒÔÀûÓÃCallable½Ó¿Ú¡£
    Á½ÖÖÈÎÎñµÄÇø±ð£ºRunnable µÄrun()·½·¨Íê³ÉµÄÈÎÎñÊÇûÓзµ»ØÖµµÄ - void
    ¶øCallable µÄcall()·½·¨Íê³ÉµÄÈÎÎñÊÇÓзµ»ØÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ