Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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½â»ó²¿·ÖºÃÌâ~~

·Ï»°²»¶à˵£¬Ö±½ÓÉÏÌâÄ¿
½ÓÏÂÀ´¾ÍÊǼûÖ¤Ææ¼£µÄʱ¿Ì£ºÇëÏȲ»ÒªÔËÐдúÂ룬²ÂÒ»ÏÂÊä³öµÄ½á¹û£º
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ÖйØÓÚVectorµÄһЩÊÂ

        ÎÒÃÇÖªµÀ£¬Vector ÀàÌṩÁËʵÏÖ¿ÉÔö³¤Êý×éµÄ¹¦ÄÜ£¬Ëæ×Ÿü¶àÔªËØ¼ÓÈëÆäÖУ¬Êý×é±äµÄ¸ü´ó¡£ÔÚɾ³ýÒ»Ð©ÔªËØÖ®ºó£¬Êý×é±äС¡£
Vector ÓÐÈý¸ö¹¹Ô캯Êý£¬
public Vector(int initialCapacity,int capacityIncrement)
public Vector(int initialCapacity)
public Vector()
  ......

Java Applet¶Áд¿Í»§¶Ë´®¿Ú——ÖÕ¼«Æª

²âÊÔ»·¾³£º
SDK£ºOracle JRockit for Java version 6, Java Communication for Windows 2.0
OS£ºWINDOWS7
ÍâÉ裺´®¿ÚÌõÐÎÂëɨÃèǹ
Server£ºTomcat6
 
¿´ÁËÍøÉÏÁ¼Ý¬²»ÆëµÄ¹ØÓÚApplet·ÃÎÊ´®¿ÚµÄÎÄÕ£¬×ܽáÆðÀ´Ëù¹Ø×¢µÄÎÊÌâÎÞÍâºõÒÔÏÂ3¸ö£º
1.    Èý¸öÎļþ£¨comm.jar¡¢javax.comm.propertiesºÍwin3 ......

ubuntuÏÂjava°²×°

´ò¿ªÖÕ¶Ë£¬Ö´ÐÐÒÔÏÂÃüÁ»òʹÓÃAdept/ÐÂÁ¢µÃÈí¼þ¹ÜÀíÆ÷£¬ÔÚÆäÖÐËÑË÷"sun-java6-jdk"²¢±ê¼Ç°²×°¡£
sudo apt-get install sun-java6-jdk
Ìáʾ£º°²×°¹ý³ÌÖÐÐèÒªÄã»Ø´ðÊÇ·ñͬÒâʹÓÃЭÒ飨ÖÕ¶ËÖкìÀ¶É«µÄÌáʾ½çÃæ£©£¬´Ëʱ°´tab¼üÖÁOK£¬ÔÙ°´»Ø³µ¼´¿ÉÕý³£°²×°¡£
    * ÉèÖõ±Ç°Ä¬ÈϵÄjava½âÊÍÆ÷ºÍ±àÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ