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

JAVA ÎļþÏÂÔØʱµÄÎļþÃûÂÒÂë½â¾ö

if(null != agent && -1 != agent.indexOf("MSIE")){ 
                    filename = URLEncoder.encode(filename
,"UTF8"); 
         }else if(null != agent && -1 != agent.indexOf("Mozilla")){ 
            // filename = MimeUtility.encodeText(filename
,"UTF8","B"); 
             //System.out.println("--------firefox---------------------");
            filename = new String(wjTemp.getWj_name().getBytes("UTF-8"),"ISO8859-1");; 
        } 


Ïà¹ØÎĵµ£º

Java µÄ £ÀOverride ±ê¼ÇµÄ¼æÈÝÇé¿ö

ÔÚ Java 5 »·¾³ÖУ¬Èç¹ûÓÃÀàAȥʵÏÖ½Ó¿ÚB (A implements B)£¬ÔÚ Java 5 µÄƽ̨Ï£¬A ʵÏֵķ½·¨ÃûÇ°ÊDz»ÄÜÌí¼Ó @Override ±ê¼ÇµÄ£¬·ñÔò»á±¨ÈçÏÂͼËùʾµÄ´íÎóÌáʾ¶øÎÞ·¨±àÒ룺
{{----}}16172
¾­¹ý³¢ÊÔºÍ×ܽᣬµÃ³öÏÂ±í¡£
Version
Java 5
Java 6
³¬ÀàÐÍÊÇ interface£¬×ÓÀàÐÍÖØдµÄ·½·¨ÄÜ·ñÌí¼Ó@Override ±ê¼Ç
·ñ
ÊÇ
......

java ÖÐÀàÐÍת»»¹æÔò

Ê×ÏÈboolean²»ÄܸúÆäËûÀàÐÍת»»¡£
1.¸³ÖµÊ±£º
               ÕûÊýĬÈϵÄÊÇint  ¸¡µãĬÈÏÊÇdouble£¬¼´ÕûÐ͵ȺÅÓÒ²àÈ«²¿×Ô¶¯×ª»¯Îªint£¬¸¡µãÐ͵ȺÅÓÒ²à×Ô¶¯×ª»»Îªdouble¡£µ±´óÈÝÁ¿µÄÊý¾ÝÀàÐ͸³Öµ¸øСÈÝÁ¿µÄÊý¾ÝÀàÐÍʱ ÐèҪǿÖÆÀàÐÍת»»µ«ÊÇÓÐ ......

µÚÈýƪ£ºJAVA×Ö·û±àÂëϵÁÐÈý£ºJavaÓ¦ÓÃÖеıàÂëÎÊÌâ

1. ¸ÅÊö
±¾ÎÄÖ÷Òª°üÀ¨ÒÔϼ¸¸ö·½Ã棺±àÂë»ù±¾ÖªÊ¶£¬java£¬ÏµÍ³Èí¼þ£¬url£¬¹¤¾ßÈí¼þµÈ¡£
ÔÚÏÂÃæµÄÃèÊöÖУ¬½«ÒÔ"ÖÐÎÄ"Á½¸ö×ÖΪÀý£¬¾­²é±í¿ÉÒÔÖªµÀÆäGB2312±àÂëÊÇ"d6d0 cec4"£¬Unicode±àÂëΪ"4e2d 6587"£¬UTF±àÂë¾ÍÊÇ"e4b8ad e69687"¡£×¢Ò⣬ÕâÁ½¸ö×ÖûÓÐiso8859-1±àÂ룬µ«¿ÉÒÔÓÃiso8859-1±àÂëÀ´"±íʾ"¡£
2. ±àÂë»ù±¾ÖªÊ ......

Java ÖÐÁ½ÖÖftp²Ù×÷·½Ê½

×î½ü¿´µ½¼¸Æª¹ØÓÚjavaÖвÙ×÷ftpµÄÎÄÕ£¬ËùÒÔÏëдһ¸ö×ܽáÌù£¬±ê¼Çһϣ¬·½±ãÒÔºóÓ¦Óá£
Ê×ÏÈ£¬ÎÒÃÇ¿ÉÒÔÓ¦ÓÃjavaÖеÄftp¿â£¬javaÖÐÌṩÁËÒ»¸öftpclientµÄÀ࣬ÌṩÁ˺ܶà²Ù×÷ftpµÄ·½·¨¡£
ÏÈÉÏ´úÂ룬һ¿´±ãÖª£¬ºÜ¼òµ¥£¬Ó¦ÓÃʱֻҪ´«µÝÏàÓ¦µÄserver£¬user£¬passwordµÈ¾ÍÐÐÁË¡£
import java.io.IOException;
import sun.net. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ