JAVA ½âÎö¼ÓÃÜZIP
2010-03-10
×î½ü×öÏîÄ¿Óöµ½ÁËÒ»¸öÎÊÌ⣬ÐèÒª½«¿Í»§¶Ëµ½´¦µÄ¼ÓÃÜZIPѹËõ°üÖ±½Óµ¼È뵽ϵͳÖС£ÔÚÍøÉϲéÁËϹØÓÚZIP½âÃܵÄÎÊÌ⣬·¢ÏÖÁËwinzipaesÕâ¸ö¿ªÔ´ÏîÄ¿http://code.google.com/p/winzipaes £¬Õâ¸öÏîÄ¿ÐèÒªÒÀÀµbcprov-jdk14-145.jarÕâ¸ö¿ªÔ´°ü£¬Á½¸ö°üÁªºÏʹÓÿÉÒÔ½âÃÜAES -256Ëã·¨µÄ¼ÓÃÜÃÜÂë¡£
ÒòΪϵͳʹÓõÄÊÇJDK1.4£¬¶øwinzipaes¿ªÔ´ÏîĿʹÓõÄÊÇjdk1.5±àдµÄ£¬ËùÒÔÎÒ¸ÄдÁ˳ÌÐò£¬¸ÄΪ1.4¿ÉÖªÖ´Ðеİ汾²¢×ö³ÉÁËjar°ü£¬ÓÐÐèÒªµÄÅóÓÑ¿ÉÒÔÓëÎÒËùÒª£¬ÐÅÏäywxowen999@sina.com¡£
Õâ¸ö°üµÄʹÓ÷½·¨Ò²·Ç³£¼òµ¥£¬¼ÓÃܺͽâÃÜËã·¨È磺
¼ÓÃÜ
AesZipFileEncrypter enc = new AesZipFileEncrypter("/doc/zipSpecificationAes.zip");
enc.zipAndEcrypt(new File("/doc/zipSpecification.txt"), "foo");
½âÃÜ
AesZipFileDecrypter zipFile = new AesZipFileDecrypter( new File("/doc/zipSpecificationAes.zip") );
ExtZipEntry entry = zipFile.getEntry( "zipSpecification.txt" );
zipFile.extractEntry( entry, new File("doc/zipSpecification.txt"), "foo" );
×¢Ò⣺ÕâÀïµÄfoo´ú±íѹËõÎļþµÄÃÜÂ룬zipSpecification.txt´ú±íѹËõÎļþÖеÄÒ»¸öÎļþÃû¡£
·Ç³£¼òµ¥°É£¬ºÇºÇÏ£Íû¶ÔÄãÓÐÓã¡
Ïà¹ØÎĵµ£º
ÌáÆðJavaÄÚ²¿ÀࣨInner Class£©¿ÉÄܺܶàÈ˲»Ì«ÊìϤ£¬Êµ¼ÊÉÏÀàËƵĸÅÄîÔÚC++ÀïÒ²ÓУ¬ÄǾÍÊÇǶÌ×ÀࣨNested
Class£©£¬¹ØÓÚÕâÁ½ÕßµÄÇø±ðÓëÁªÏµ£¬ÔÚÏÂÎÄÖлáÓжԱȡ£ÄÚ²¿Àà´Ó±íÃæÉÏ¿´£¬¾ÍÊÇÔÚÀàÖÐÓÖ¶¨ÒåÁËÒ»¸öÀࣨÏÂÎĻῴµ½£¬ÄÚ²¿Àà¿ÉÒÔÔںܶàµØ·½¶¨Ò壩£¬¶øʵ
¼ÊÉϲ¢Ã»ÓÐÄÇô¼òµ¥£¬Õ§¿´ÉÏÈ¥ÄÚ²¿ÀàËƺõÓÐЩ¶àÓ࣬ËüµÄÓô¦¶ÔÓ ......
ÏÂÊöÊ®Ëĸö¼¼ÇÉ£¬ÊÇÐí¶àÈËÔÚ´óÁ¿µÄÊý¾Ý¿â·ÖÎöÓëÉè¼Æʵ¼ùÖУ¬Öð²½×ܽá³öÀ´µÄ¡£¶ÔÓÚÕâЩ¾ÑéµÄÔËÓ㬶ÁÕß²»ÄÜÉú°ïÓ²Ì×£¬ËÀ¼ÇÓ²±³£¬¶øÒªÏû»¯Àí½â£¬ÊµÊÂÇóÊÇ£¬Áé»îÕÆÎÕ¡£²¢Öð²½×öµ½£ºÔÚÓ¦ÓÃÖз¢Õ¹£¬ÔÚ·¢Õ¹ÖÐÓ¦Óá£
1. Ôʼµ¥¾ÝÓëʵÌåÖ®¼äµÄ¹Øϵ
¿ÉÒÔÊÇÒ»¶ÔÒ»¡¢Ò»¶Ô¶à¡¢¶à¶Ô¶àµ ......
javaÃæÊÔÌâ¼°´ð°¸£¨»ù´¡Ìâ122µÀ£¬´úÂëÌâ19µÀ£©http://ilovelate.itpub.net/post/7368/40836
ilovelate | 13 ¾ÅÔÂ, 2005 00:31
JAVAÏà¹Ø»ù´¡ÖªÊ¶
1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇ
Щ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»Ê ......
http://www.cncn6.com/tongyong/2009/2428.html
JavaÊÇÓÉSun΢ϵͳ¹«Ë¾Ëù·¢Õ¹³öÀ´µÄ³ÌÐòÓïÑÔ£¬Ëü±¾ÉíÊÇÒ»ÖÖ¶ÔÏóµ¼ÏòµÄ³ÌÐòÓïÑÔ¡£JAVAÄ¿Ç°ÔÚÊÖ»úÉÏÓ¦ÓÃ×î¶àµÄ¾ÍÊÇJAVAÓÎÏ·ºÍÊÖ»úÓ¦ÓóÌÐò¡£JavaÒ²ºÅ³ÆÄÜ¿çƽ̨ʹÓõÄÓïÑÔ£¬ÕâÖ÷ÒªÒòΪJava±¾Éí±»±àÒëºó£¬²¢²»Ö±½Ó²úÉú¿ÉÖ´ÐеÄÂ룬¶øÊDzúÉúÒ»ÖÖÖмäÂë½Ð×÷ByteCode£¬ÕâÖÖÂë±ØÐèÔ ......
http://20921556.javaeye.com/blog/263974
¹Ø¼ü×Ö: java jar
JavaµÄÒ»ÖÖÎĵµ¸ñʽ£¬JARÎļþ·Ç³£ÀàËÆZIPÎļþ£¬Ò²ÊÇÒ»¸öѹËõÎļþ¡£JARÎļþÓëZIPÎļþΩһµÄÇø±ð¾ÍÊÇÔÚJARÎļþµÄÄÚÈÝÖУ¬Ëü°üº¬ÁËÒ»¸ömeta-inf/manifest.mfÎļþ£¬Õâ¸öÎļþÊÇÔÚÉú³ÉJARÎļþµÄʱºò×Ô¶¯´´½¨µÄ¡£ÐèҪעÒâµÄÊÇ£¬JARÎļþ²»ÐèÒª½ø ......