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


Ïà¹ØÎĵµ£º

MySQL´æ´¢¹ý³ÌÒÔ¼°ÔÚJAVAÖеijÌÐòµ÷ÓÃ

               ´æ´¢¹ý³ÌÊÇÒ»ÖÖ´æ´¢ÔÚÊý¾Ý¿âÖеijÌÐò£¨¾ÍÏñÕý¹æÓïÑÔÀïµÄ×Ó³ÌÐòÒ»Ñù£©£¬×¼È·µÄÀ´Ëµ£¬MySQLÖ§³ÖµÄ“routines£¨Àý³Ì£©”ÓÐÁ½ÖÖ£ºÒ»ÊÇÎÒÃÇ˵µÄ´æ´¢¹ý³Ì£¬ ¶þÊÇÔÚÆäËûSQLÓï¾äÖпÉÒÔ·µ»ØÖµµÄº¯Êý£¨Ê¹ÓÃÆðÀ´ºÍMysqlԤװÔصĺ¯ÊýÒ ......

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

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

»ØÎĵÄjavaʵÏÖ£¨Õ»ºÍ¶ÓÁеÄÅäºÏ£©

package com.algrothim.sample.plo;
/**
* @author yuan
*ÕâÒ»¸öÅжÏÒ»¸ö×Ö·û´®ÊÇ·ñΪ»ØÎĵÄÀý×Ó¡£
*ÀïÃæ½èÖúÈý¸öÖØÒªµÄÊý¾Ý½á¹¹µÄ֪ʶ£º
*Õ»£¬¶ÓÁУ¬ÒÔ¼°ÒýÓá£
*´Ë³ÌÐòµÄÔ­ÀíÊÇ£º¸ù¾ÝÕ»µÄºó½øÏȳö£¬ÒÔ¼°¶ÓÁеÄÏȽøÏȳöµÄÔ­Àí¡£
*Á½¸öADTÊÇͬ²½µÄ£¬Èç¹û´ÓÕ»³öÀ´µÄ×Ö·ûÓë´Ó¶ÓÁгöÀ´µÄ×Ö·ûÈ«²¿Ò»Ñù£¬
*˵Ã÷Ϊ ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ