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

javaÌáÈ¡rarѹËõÎĵµ

ת×Ô£ºhttp://hi.baidu.com/wqj403/blog/item/149957345cd6a11891ef3976.html
ÓÃjavaÔõôÌáÈ¡»òÊǽâѹrarѹËõÎĵµ£¿ÒÔÇ°²éÁ˺ܶàµÄ×ÊÁÏ£¬Ã»ÓÐÕÒµ½Ïà¹ØµÄµÚÈý·½¿â£¬ÍøÉϲéÕÒµÄ×ÊÁÏ˵ÊǽâÎörarÖ»Äܸü¼ÓrarµÄÃüÁîÐвÎÊýÀ´½âÎö¡£ÒòΪrarѹËõÎĵµµÄÄÚ²¿½á¹¹ÊÇûÓй²¿ªµÄ¡£ËùÒÔûÓÐרÃŵĽâÎö¿â³ÌÐò¡£×Ô¼ºÒ²¾ÍÖ»ºÃÓÃÃüÁîÐÐÁË£¬µ«ÊÇÔÚʵ¼ÊÓ¦ÓÃÖУ¬Óöµ½rar¼ÓÃÜʱ¾ÍÓöµ½ÁËÎÊÌâ¡£
ËùÒÔ×Ô¼ºÓÖÔÚÍøÉϺܷÑÐĵÄÕÒÁËÏà¹Ø×ÊÁÏ£¬ÖÕÓÚÕÒµ½ÁËÒ»¸ö¿â¿ÉÒÔ½âÎörarÎĵµ¡£
¿âÏÂÔصØÖ·£ºhttp://www.mucommander.com/¡£ÕâÊǸö½â¾ö¶àÖÖÎĵµµÄÈí¼þ£¬ÊÇÓÃjavaдµÄ¡£ËùÒÔÄܹ»ÒýÓÃÀ´½â¾örarµÄ½âÎö¡£
package DOCExtract;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import DocHandler.DocTypeNameParse;
import DocHandler.IDocHandler;
import com.mucommander.file.AbstractFile;
import com.mucommander.file.FileFactory;
import com.mucommander.file.impl.rar.provider.RarFile;
import com.mucommander.file.impl.rar.provider.de.innosystec.unrar.rarfile.FileHeader;
/**
* IDocHandler Ϊ×Ô¼ºÐ´µÄ½Ó¿ÚÀà
*
*/
public class RarExtractor implements IDocHandler {
    // ÿ´Î¶ÁÈ¡µÄ×Ö½Ú´óС
    private int BLOCKSIZE = 1024;
    // ÁÙʱÎļþ±àºÅ
    private int FILE_COUNT = 0;
    public int getText(InputStream inputStream, StringBuffer strBuff) {
String fileDir = "f:\\wang" + FILE_COUNT;
FILE_COUNT++;
String fileName = null;
try { // ½«ÎļþдÈë´ÅÅÌÉÏ
     writeTodev(inputStream, fileDir);
     // ´Ó´ÅÅÌÉ϶ÁÈ¡Îļþ
     File file = new File(fileDir);
     String[] subFilePath = file.list();
     fileName = fileDir + "\\" + subFilePath[0];
     AbstractFile abstractFile = FileFactory.getFile(fileName);
     RarFile rarFile = new RarFile(abstractFile);
     Collect


Ïà¹ØÎĵµ£º

ÎÒ¶ÔJava Serializable£¨ÐòÁл¯£©µÄ×ܽá

1¡¢ÐòÁл¯ÊǸÉʲôµÄ£¿
       ¼òµ¥Ëµ¾ÍÊÇΪÁ˱£´æÔÚÄÚ´æÖеĸ÷ÖÖ¶ÔÏóµÄ״̬£¨Ò²¾ÍÊÇʵÀý±äÁ¿£¬²»ÊÇ·½·¨£©£¬²¢ÇÒ¿ÉÒ԰ѱ£´æµÄ¶ÔÏó״̬ÔÙ¶Á³öÀ´¡£ËäÈ»Äã¿ÉÒÔÓÃÄã×Ô¼ºµÄ¸÷ÖÖ¸÷ÑùµÄ·½·¨À´±£´æobject states£¬µ«ÊÇJava¸øÄãÌṩһÖÖÓ¦¸Ã±ÈÄã×Ô¼ººÃµÄ±£´æ¶ÔÏó״̬µÄ»úÖÆ£¬ÄǾÍÊÇÐòÁл¯¡£
2¡¢Ê²Ã´Çé¿öÏ ......

java½â»ó²¿·ÖºÃÌâ~~

·Ï»°²»¶à˵£¬Ö±½ÓÉÏÌâÄ¿
½ÓÏÂÀ´¾ÍÊǼûÖ¤Ææ¼£µÄʱ¿Ì£ºÇëÏȲ»ÒªÔËÐдúÂ룬²ÂÒ»ÏÂÊä³öµÄ½á¹û£º
1.
public class Test1{
    public static void main(String[] args){
        System.out.println(2.0 - 1.1);
    }
}
2.
public class Test2{
&n ......

JavaÏß³Ìͬ²½»úÖÆsynchronized¹Ø¼ü×ÖµÄÀí½â


JavaÏß³Ìͬ²½»úÖÆsynchronized¹Ø¼ü×ÖµÄÀí½â
¹Ø¼ü×Ö: Ïß³Ì synchronized
ÎÄÕ³ö´¦£ºhttp://tech.it168.com/j/2008-01-30/200801302324557.shtml 
×÷ÕߣºÀ´×ÔITPUBÂÛ̳ 
Ïß³Ìͬ²½£º 
¡¡¡¡ÓÉÓÚͬһ½ø³ÌµÄ¶à¸öÏ̹߳²ÏíͬһƬ´æ´¢¿Õ¼ä£¬ÔÚ´øÀ´·½±ãµÄͬʱ£¬Ò²´øÀ´ÁË·ÃÎʳåÍ»Õâ¸öÑÏÖصÄÎÊÌâ¡£JavaÓïÑÔÌṩÁË ......

java °²È«É³ÏäÄ£ÐÍÏê½â£¨×ª£©


Æðµ½µÚÒ»µÀ°²È«±£ÕÏ×÷ÓõĔ˫Ç×ίÅÉÀà¼ÓÔØÄ£ÐÍ”
Ë«Ç×ίÅÉ·½Ê½µÄÀà¼ÓÔØ£¬Ö¸µÄÊÇÓÅÏÈ´Ó¶¥²ãÆô¶¯Àà¼ÓÔØÆ÷¿ªÊ¼£¬×Ô¶¥Ïòϵķ½Ê½¼ÓÔØÀàµÄÄ£ÐÍ£¨²Î¼ûµÚÒ»ÌõÀà×°ÔØÆ÷Ìåϵ½á¹¹£©¡£
ÕâÖÖÄ£Ð͵ĺô¦ÊÇ£¬µ×²ãµÄÀà×°ÔØÆ÷×°ÔصÄÀàÎÞ·¨Ó붥²ãÀà×°ÔØÆ÷×°ÔصÄÀàÏ໥µ÷Óá£
ÄÄÅÂÊÇͬ°üϵÄÀֻ࣬ҪËûÃDz»ÊôÓÚͬһÀà×°ÔØÆ÷£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ