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

ÀûÓÃJavaʵÏÖѹËõÓë½âѹËõ£¨zip¡¢gzip£©Ö§³ÖÖÐÎÄ·¾¶

¹Ø¼ü×Ö: zip gzip
zip°çÑÝ׏鵵ºÍѹËõÁ½¸ö½ÇÉ«£»gzip²¢²»½«Îļþ¹éµµ£¬½öÖ»ÊǶԵ¥¸öÎļþ½øÐÐѹËõ£¬ËùÒÔ£¬ÔÚUNIXƽ̨ÉÏ£¬ÃüÁîtarͨ³£ÓÃÀ´´´½¨Ò»¸öµµ°¸Îļþ£¬È»ºóÃüÁîgzipÀ´½«µµ°¸ÎļþѹËõ¡£
Java
I/OÀà¿â»¹ÊÕ¼ÁËһЩÄܶÁдѹËõ¸ñʽÁ÷µÄÀà¡£ÒªÏëÌṩѹËõ¹¦ÄÜ£¬Ö»Òª°ÑËüÃÇ°üÔÚÒÑÓеÄI/OÀàµÄÍâÃæ¾ÍÐÐÁË¡£ÕâЩÀ಻ÊÇReaderºÍWriter£¬¶øÊÇInputStreamºÍOutStreamputµÄ×ÓÀà¡£ÕâÊÇÒòΪѹËõËã·¨ÊÇÕë¶Ôbyte¶ø²»ÊÇ×Ö·ûµÄ¡£
Ïà¹ØÀàÓë½Ó¿Ú£º
Checksum

½Ó¿Ú£º±»ÀàAdler32ºÍCRC32ʵÏֵĽӿÚ
Adler32

£ºÊ¹ÓÃAlder32Ëã·¨À´¼ÆËãChecksumÊýÄ¿
CRC32

£ºÊ¹ÓÃCRC32Ëã·¨À´¼ÆËãChecksumÊýÄ¿

CheckedInputStream

£ºInputStreamÅÉÉúÀ࣬¿ÉµÃµ½ÊäÈëÁ÷µÄУÑéºÍChecksum£¬ÓÃÓÚУÑéÊý¾ÝµÄÍêÕûÐÔ
CheckedOutputStream

£ºOutputStreamÅÉÉúÀ࣬¿ÉµÃµ½Êä³öÁ÷µÄУÑéºÍChecksum£¬
ÓÃÓÚУÑéÊý¾ÝµÄÍêÕûÐÔ

DeflaterOutputStream
£ºÑ¹ËõÀàµÄ»ùÀà¡£
ZipOutputStream

£ºDeflaterOutputStreamµÄÒ»¸ö×ÓÀ࣬°ÑÊý¾ÝѹËõ³ÉZipÎļþ¸ñʽ¡£
GZIPOutputStream

£ºDeflaterOutputStreamµÄÒ»¸ö×ÓÀ࣬°ÑÊý¾ÝѹËõ³ÉGZipÎļþ¸ñʽ
InflaterInputStream

£º½âѹËõÀàµÄ»ùÀà
ZipInputStream

£ºInflaterInputStreamµÄÒ»¸ö×ÓÀ࣬ÄܽâѹËõZip¸ñʽµÄÊý¾Ý
GZIPInputStream

£ºInflaterInputStreamµÄÒ»¸ö×ÓÀ࣬ÄܽâѹËõZip¸ñʽµÄÊý¾Ý

ZipEntry
Àࣺ±íʾ ZIP
ÎļþÌõÄ¿
ZipFile
Àࣺ´ËÀàÓÃÓÚ´Ó ZIP Îļþ¶ÁÈ¡ÌõÄ¿
ÓÃGZIP½øÐжԵ¥¸öÎļþѹËõ

GZIPµÄ½Ó¿Ú±È½Ï¼òµ¥£¬Òò´ËÈç¹ûÄãÖ»Ðè¶ÔÒ»¸öÁ÷½øÐÐѹËõµÄ»°£¬¿ÉÒÔʹÓÃËü¡£µ±È»Ëü¿ÉÒÔѹËõ×Ö·ûÁ÷£¬Óë¿ÉÒÔѹËõ×Ö½ÚÁ÷£¬ÏÂÃæÊÇÒ»¸ö¶ÔGBK±àÂë¸ñʽµÄÎı¾Îļþ½øÐÐѹËõµÄ¡£
ѹËõÀàµÄÓ÷¨·Ç³£¼òµ¥£»Ö»ÒªÓÃGZIPOutputStream
»òZipOutputStream°ÑÊä³öÁ÷°üÆðÀ´£¬ÔÙÓÃGZIPInputStream
»òZipInputStream°ÑÊäÈëÁ÷°üÆðÀ´¾ÍÐÐÁË¡£Ê£ÏµĶ¼ÊÇЩÆÕͨµÄI/O²Ù×÷¡£

Java´úÂë
import
 java.io.BufferedOutputStream;
  
import
 java.io.BufferedReader;
  
import
 java.io.FileInputStream;   
import
 java.io.FileOutputStream;
  
import
 java.io.IOException;
  
import
 java.io.InputStreamReader;
  
import
 java.util.zip.GZIPInputStream;
  
import
&n


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

IBM FileNet Content Java API ¼ò½é

2008 Äê 6 ÔÂ 24 ÈÕ
Ô­ÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......

java µÃµ½ÏîĿ·¾¶

      Ò» Ïà¶Ô·¾¶µÄ»ñµÃ
¡¡¡¡ ˵Ã÷:Ïà¶Ô·¾¶(¼´²»Ð´Ã÷ʱºòµ½µ×Ïà¶ÔË­)¾ù¿Éͨ¹ýÒÔÏ·½Ê½»ñµÃ£¨²»ÂÛÊÇÒ»°ãµÄjavaÏîÄ¿»¹ÊÇwebÏîÄ¿£©
¡¡¡¡
       String relativelyPath=System.getProperty("user.dir");
¡¡¡¡ ÉÏÊöÏà¶Ô·¾¶ÖУ¬javaÏîÄ¿ÖеÄÎļþÊÇÏà¶ÔÓÚÏîÄ¿µÄ ......

Java±ÊÊԱؿ¼Ì⣨¶þ£©µ½µ×´´½¨Á˼¸¸öString¶ÔÏó

ÎÒÃÇÊ×ÏÈÀ´¿´Ò»¶Î´úÂ룺
Java´úÂë £º
String str=new String("abc");
½ô½Ó×ÅÕâ¶Î´úÂëÖ®ºóµÄÍùÍùÊÇÕâ¸öÎÊÌ⣬ÄǾÍÊÇÕâÐдúÂ뾿¾¹´´½¨Á˼¸¸öString¶ÔÏóÄØ£¿Ïà
ÐÅ´ó¼Ò¶ÔÕâµÀÌâ²¢²»Ä°Éú£¬´ð°¸Ò²ÊÇÖÚËùÖÜÖªµÄ£¬2¸ö¡£½ÓÏÂÀ´ÎÒÃǾʹÓÕâµÀÌâÕ¹¿ª£¬Ò»Æð
»Ø¹ËÒ»ÏÂÓë´´½¨String¶ÔÏóÏà¹ØµÄһЩJAVA֪ʶ¡£
ÎÒÃÇ¿ÉÒÔ°ÑÉÏÃæÕâÐдúÂë· ......

java¿ªÔ´ÏîÄ¿

Spring Framework  ¡¾Java¿ªÔ´ J2EE¿ò¼Ü¡¿
Spring ÊÇÒ»¸ö½â¾öÁËÐí¶àÔÚJ2EE¿ª·¢Öг£¼ûµÄÎÊÌâµÄÇ¿´ó¿ò¼Ü¡£ SpringÌṩÁ˹ÜÀíÒµÎñ¶ÔÏóµÄÒ»Ö·½·¨²¢ÇÒ¹ÄÀøÁË×¢Èë¶Ô½Ó¿Ú±à³Ì¶ø²»ÊǶÔÀà±à³ÌµÄÁ¼ºÃÏ°¹ß¡£SpringµÄ¼Ü¹¹»ù´¡ÊÇ»ùÓÚʹÓÃJavaBeanÊôÐ﵀ Inversion of ControlÈÝÆ÷¡£È»¶ø£¬Õâ½ö½öÊÇÍêÕûͼ¾°ÖеÄÒ»²¿·Ö£ºSpringÔÚÊ¹Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ