java½âѹzipÓërar
ÕâÁ½Ìì,ÒòΪÏîÄ¿ÐèÒª,Éæ¼°µ½Îļþ¼ÐµÄÉÏ´«,ÏëÁ˺ܾÃ,ÔÚÍøÉÏÒ²ÕÒÁËһЩ×ÊÁÏ,¶¼Ã»ÓÐʲôºÜºÃµÄ°ì·¨,¶¼ÊÇÓòå¼þÖ®ÀàµÄ½â¾ö,ºóÃæ¾ÍÏëµ½ÁËÉÏ´«Ñ¹Ëõ
Îļþ,˵µ½Ñ¹ËõÎļþ,×ÔÈ»¾Í»áÓöµ½,ÎļþµÄ½âѹËõÎÊÌâ,´ó¼Ò¶¼ÖªµÀ,±È½Ï³£¼ûµÄѹËõÎļþÓÐrar,zip,È»¶ørar,zipµÄÇø±ðÓÖÔÚÄÄ?˵һ
µã,zip ѹËõËã·¨ÊÇÃâ·Ñ¿ª·ÅµÄ£¬ÈκÎÈË¿ÉÒÔÃâ·ÑʹÓᣵ«ÊÇ RAR ¾Í²»Ò»ÑùÁË£¬
Õâ¸öѹËõËã·¨ÒѾÊܵ½×¨ÀûȨµÄ±£»¤£¬Èç¹ûҪʹÓà RAR
Ëã·¨±ØÐëÏòÆäרÀûËùÓÐÈËÖ§¸¶·ÑÓá£ËùÒÔÔÚÒ»°ãµÄ¿ªÔ´ÍøÕ¾,Ïñapache,sourceforgeµÈ¿ªÔ´ÍøÕ¾ÉϵĿªÔ´ÏîÄ¿Ò»°ã¶¼ÓÃzip¸ñʽ.±¾ÈËËùѧÓï
ÑÔÖ÷ҪΪjava×ÔÈ»»áÏëÓÃjavaÈ¥½âѹ,ÓÃjavaÈ¥½âѹzip±È½ÏÈÝÒ×,ÓÐapacheÌṩµÄ¿ªÔ´ÏîÄ¿ant,ÎÒÔÚÍøÉÏÕÒÒ»ÏÂ,ÕÒµ½ÁË
sourceforgeµÄ¿ªÔ´ÏîÄ¿unrarרÓÃÓÚѹËõ,½âѹrar.Ö»¿ÉϧûÓÐÎĵµ(ÈÃÈ˼´Ï²,ÓÖ±¯).
ÏÂÃæÊÇÒ»¸ö¶Ôzip,rar½øÐнâѹµÄ³ÌÐò(´Óhttp://topic.csdn.net/u/20090227/11/fd8c30ee-ce56-49be-bdea-d19d22a0da37.html
ת
ÔØ,¹©´ó¼ÒÒ»ÆðÏíÓÃ,ÁíÍâÏ£Íû¶ÔunrarÓбȽϷ¢½âµÄÅóÓÑ,ÄÜ·¢±íÒ»¸öÈ˼û½â),
±¸×¢£ºÄãÐèÒªjava-unrar.zip<½âѹrarÓÃ>
ºÍant.jar<½âѹzipÓÃ>
Á½¸öjar°ü
Java´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://dxm1986.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://dxm1986.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=import%20org.apache.tools.tar.TarEntry%3B%0Aimport%20org.apache.tools.tar.TarOutputStream%3B%0Aimport%20org.apache.tools.zip.ZipEntry%3B%0Aimport%20org.apache.tools.zip.ZipFile%3B%0Aimport%20org.apache.tools.zip.ZipOutputStream%3B" quality="high" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="14" height="15">
import
org.apache.tools.tar.TarEntry;
import
org.apache.tools.tar.TarOutputStream;
import
org.apache.tools.zip.ZipEntry;
import
org.apache.tools.zip.ZipFile;
import
org.apache.tools.zip.ZipOutputStream;
import org.apache.tools.tar.TarEntry;
import org.apache.tools.tar.TarO
Ïà¹ØÎĵµ£º
ÒÔǰΪÁ˹ýÂËJavaµÄISO-8859-1×Ö·û£¬×ÜÊÇʹÓÃÈçÏ´úÂëÀ´´¦Àí¡£
view plaincopy to clipboardprint?
String strUserame = (String)reuqest.getParameter("username");
strUsername = new String(strUserame.getBytes("ISO-8859-1"),"UTF-8");
String strUserame ......
ͨ¹ýJava hread dump·ÖÎöÕÒµ½ºÄ·ÑCPU×î¸ßµÄÔ´´úÂë
×÷Õߣººú¼Ò»Ô 2010-04-11
×î½ü²úÆ·ÔÚÔËÐйý³ÌÖгöÏÖÁËÐÔÄÜÎÊÌ⣬Ôںܵ͵ÄÁ÷Á¿µÄÇé¿öÏÂCPU¾Í´ïµ½40%£¬Á÷Á¿ÉÔ¸ßʱCPU¾Í´ïµ½98%¡£
²úÆ·ÊÇJavaдµÄ£¬ÔËÐÐÓÚJBOSSƽ̨¡£²Ù×÷ϵͳΪredhat linux¡£µ±Äãͨ¹ýtopÃüÁî·¢ÏÖÄãµÄÓ¦ÓóÌÐòµÄ½ø³ÌÕ¼ÓÃCPU´ï98%ʱ£¬ÎÒÏëÄã¿Ï¶¨ÏëÖªµÀ¾¿¾¹Ê ......
±íÃæÉÏ¿´ÆðÀ´£¬ÎÞÂÛÓï·¨»¹ÊÇÓ¦ÓõĻ·¾³£¨±ÈÈçÈÝÆ÷Àࣩ£¬·ºÐÍÀàÐÍ£¨»òÕß·ºÐÍ£©¶¼ÀàËÆÓÚ C++ ÖеÄÄ£°å¡£µ«ÊÇÕâÖÖÏàËÆÐÔ½öÏÞÓÚ±íÃ棬Java ÓïÑÔÖеķºÐÍ»ù±¾ÉÏÍêÈ«ÔÚ±àÒëÆ÷ÖÐʵÏÖ£¬ÓɱàÒëÆ÷Ö´ÐÐÀàÐͼì²éºÍÀàÐÍÍƶϣ¬È»ºóÉú³ÉÆÕͨµÄ·Ç·ºÐ͵Ä×Ö½ÚÂë¡£ÕâÖÖʵÏÖ¼¼Êõ³ÆΪ²Á³ý£¨erasure£©£¨±àÒëÆ÷ʹÓ÷ºÐÍÀàÐÍÐÅÏ¢±£Ö¤ÀàÐÍ°²È«£¬È»ºóÔ ......
1.
ÔúʵµÄ»ù´¡¡£Êý¾Ý½á¹¹¡¢ÀëÉ¢Êýѧ¡¢±àÒëÔÀí£¬ÕâЩÊÇËùÓмÆËã»ú¿ÆѧµÄ»ù´¡£¬Èç¹û²»ÕÆÎÕËûÃÇ£¬ºÜÄÑд³ö¸ßˮƽµÄ³ÌÐò¡£¾ÝÎҵĹ۲죬ѧ¼ÆËã»úרҵµÄÈ˱ÈѧÆäËû
רҵµÄÈ˸üÄÜд³ö¸ßÖÊÁ¿µÄÈí¼þ¡£³ÌÐòÈËÈ˶¼»áд£¬µ«µ±Äã·¢ÏÖдµ½Ò»¶¨³Ì¶ÈºÜÄÑÔÙÌá¸ßµÄʱºò£¬¾ÍÓ¦¸ÃÏëÏëÊDz»ÊÇÒª»Ø¹ýÍ·À´ ......
ÄÚ²¿ÀàµÄʹÓõÄÓÅȱµã£º
Óŵ㣺¼õÉÙÁËÔÚÀàÎļþ±àÒëºóµÄ²úÉúµÄ×Ö½ÚÂëÎļþµÄ´óС
ȱµã£ºÊ¹³ÌÐò½á¹¹²»ÇåÎú
ʹÓÃÄÚ²¿ÀàµÄ×¢ÒâÊÂÏ
ÄÚ²¿ÀàµÄʹÓÃÒ»°ã¶¼ÓëËùÔÚµÄÍⲿÀàÓÐÒ»¶¨µÄ¹ØÁª£¬ËüÊÇÔÚÒ»¸öÀàµÄÄÚ²¿Ç¶Ì׶¨ÒåµÄÀ࣬Ëü¿ÉÒÔÊÇÆäËüÀàµÄ³ÉÔ±£¬Ò²¿ÉÒÔÔÚÒ»¸öÓï¾ä¿éµÄÄÚ²¿¶¨Ò壬»¹¿ÉÒÔÔÚ±í´ïʽÄÚ²¿ÄäÃû¶¨Òå(ÄäÃûÄÚ²¿Àà)¡£
ÄÚ²¿ ......