java ÏÂÔØÎļþµÄ·½·¨
Ç°²»¾ÃдÁ˸öÏÂÔØÎļþµÄ·½·¨¡£¾¹ýÒ»¶Îʱ¼äÔÚ³ÌÐòÖеÄÔËÓ㬷¢ÏÖÁ˼¸¸öÎÊÌâ¡£ÐÞÕýһϣº
public static File saveToFiles(String destUrl,String path) throws IOException {
final int BUFFER_SIZE = 4096;
System.out.println("file download url is "+destUrl+" path is"+path+"--------------");
FileOutputStream fos = null;
BufferedInputStream bis = null;
HttpURLConnection httpconn = null;
URL url = null;
byte[] buf = new byte[BUFFER_SIZE];
int size = 0;
if(rc.isUseProxy()){ // ´Ë´¦Îª¶ÁÈ¡ÅäÖÃÎļþµÄÄÚÈÝ£¬È·¶¨ÊÇ·ñʹÓôúÀí
Properties prop = System.getProperties();
//set http proxy addr
prop.setProperty("http.proxyHost", rc.getHttpProxyHost()); //ÉèÖôúÀíµÄIp
// set http proxy port
prop.setProperty("http.proxyPort", rc.getHttpProxyPort()+""); //ÉèÖôúÀíµÄ¶Ë¿Ú
}
&n
Ïà¹ØÎĵµ£º
ÁκéÁÁ 2010/4/13
¸ÅÊö
ÔÚʵ¼ÊµÄÏîÄ¿ÖУ¬¿ÉÄÜ»áÓöµ½ÕâÑùµÄÎÊÌ⣺A·þÎñÆ÷ÉϵÄÓ¦ÓóÌÐòÐèÒª·ÃÎÊB·þÎñÆ÷ÉϵÄaccessÊý¾Ý¿â(¿ÉÒÔʹÓÃÐéÄâ»úÄ£ÄâA¡¢B·þÎñÆ÷½øÐвâÊÔ)¡£¶øaccessÊý¾Ý¿âÊÇÎļþÀàÐ͵ģ¬²»Í¬¼ÆËã»ú¼äÐèÒªÖ¸¶¨Îļþ·ÃÎÊȨÏÞ£¬Ôö¼ÓÁ˳ÌÐòµÄ¸´ÔӶȡ£±¾ÎĽ«´ÓÒ»¸öʵÀýÀ´½éÉÜÒ»ÖÖ¼òµ¥ÊµÓõķ½·¨¡£¸ÃʵÀýʹÓõķ½·¨À´×ÔInte ......
µÝ¹éËã·¨Éè¼ÆµÄ»ù±¾Ë¼ÏëÊÇ£º¶ÔÓÚÒ»¸ö¸´ÔÓµÄÎÊÌ⣬°ÑÔÎÊÌâ·Ö½âΪÈô¸É¸öÏà¶Ô¼òµ¥ÀàͬµÄ×ÓÎÊÌ⣬¼ÌÐøÏÂÈ¥Ö±µ½×ÓÎÊÌâ¼òµ¥µ½Äܹ»Ö±½ÓÇó½â£¬Ò²¾ÍÊÇ˵µ½Á˵ÝÍƵijö¿Ú£¬ÕâÑùÔÎÊÌâ¾ÍÓеÝÍƵý⡣
¹Ø¼üҪץסµÄÊÇ£º
£¨1£©µÝ¹é³ö¿Ú
£¨2£©µØÍÆÖð²½Ïò³ö¿Ú±Æ½ü
Àý×Ó:
example£º Çó5µÄ½×³Ë¡£¡£ & ......
OOPµÄÌØÐÔÖ÷ÒªÓУº1¡¢·â×°£»2¡¢¼Ì³Ð£»3¡¢¶à̬¡£ÏÂÃæ´ÓÕ⼸¸ö·½Ãæ¾ßÌå²ûÊö¡£
1¡¢·â×°
·â×°Äܽ«ÀàµÄ¾ßÌåÐÅÏ¢Òþ²ØÆðÀ´£¬Ê¹µÃÊý¾ÝµÃµ½±£»¤¡£Æä¾ßÌåʵʩÖ÷ÒªÊÇÒÀ¿¿·ÃÎÊ¿ØÖÆ»úÖÆȨÏÞ£¬ÆäȨÏÞÖ÷ÒªÓÐËÄÖÖ£º1¡¢private£»2¡¢default£¨C++ûÓÐÕâÖÖȨÏÞ£©£»3¡¢protected£»4¡¢public¡£ÔÚÕâËÄÖÖȨÏÞϵÄÊý¾ÝÔÚÍâ½çµÄ¿É¼ûÐÔ²»Í¬¡£Private ......
×î½üÓöµ½Ò»¸öÐèÇóÒªÔÚlinuxÏÂÓÃjava µ÷ÓÃmysql¿Í»§¶ËÔ¶³ÌµÇ½mysql·þÎñÆ÷£¬´Ó¿Í»§¶Ë»úÆ÷µ¼Èëmysql½Å±¾£¬´Ómysql·þÎñÆ÷¶Ëµ¼³ö±íÖеÄÊý¾Ý¡£ÒÔÏÂÊÇÓõ½µÄÖ÷Òª·½·¨£º
Java ´úÂë
/**
* µ¼ÈëÊý¾Ý
* @param ½Å±¾µÄµØÖ·ºÍÃû³Æ
* @return ÊÇ·ñ³É¹¦&nb ......
Ç°ÑÔ:
¡¡¡¡ÔÚÎÒÃÇѧϰJavaµÄ¹ý³ÌÖÐ,ÕÆÎÕÆäÖеĻù±¾¸ÅÄî¶ÔÎÒÃǵÄѧϰÎÞÂÛÊÇJ2SE,J2EE,J2ME¶¼ÊǺÜÖØÒªµÄ,J2SEÊÇJavaµÄ»ù´¡,ËùÒÔÓбØÒª¶ÔÆäÖеĻù±¾¸ÅÄî×öÒÔ¹éÄÉ,ÒÔ±ã´ó¼ÒÔÚÒÔºóµÄѧϰ¹ý³ÌÖиüºÃµÄÀí½âjavaµÄ¾«Ëè,ÔÚ´ËÎÒ×ܽáÁË30Ìõ»ù±¾µÄ¸ÅÄî¡£
¡¡¡¡Java¸ÅÊö:
¡¡¡¡Ä¿Ç°JavaÖ÷ÒªÓ¦ÓÃÓÚÖмä¼þµÄ¿ª·¢(middleware)---´¦Àí¿Í» ......