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

java ½âѹËõzipÎļþ

²âÊÔ»·¾³£ºwin2000+jdk1.4+jb2006
 import java.io.*;
import java.util.Enumeration;
//import java.util.zip.*;
import org.apache.tools.zip.*;
public class Test {
//½âѹÎļþ
  public static void extZipFileList(String zipFileName, String extPlace) {
    try {
      ZipFile zipfile=new ZipFile(zipFileName);
      InputStream in = null;
      ZipEntry entry = null;
      File files = new File(extPlace);
      if (files.exists() == false) {
        files.mkdirs();
      }
      String inpath = extPlace;
      Enumeration ea=zipfile.getEntries();
      while ( ea.hasMoreElements()) {
        entry=(ZipEntry)ea.nextElement();
        String entryName = entry.getName();
        if (entry.isDirectory()) {
          File file = new File(extPlace + entryName);
          file.mkdirs();
          inpath += "/" + file.getName();
        }
        else {
          File newfile=new File(extPlace+File.separator+entryName.substring(0,entryName.lastIndexOf("/")+1));
          newfile.mkdirs();
          newfile=new File(extPlace+File.separator+entryName);
          newfile.createNewFile();
          FileOutputStream os = new FileOutputStream(newfile);


Ïà¹ØÎĵµ£º

JAVAʵÏÖDES¼ÓÃÜ

DESË㷨ΪÃÜÂëÌåÖÆÖеĶԳÆÃÜÂëÌåÖÆ£¬ÓÖ±»³ÉΪÃÀ¹úÊý¾Ý¼ÓÃܱê×¼
£¬ÊÇ1972ÄêÃÀ¹úIBM
¹«Ë¾ÑÐÖƵĶԳÆÃÜÂëÌåÖƼÓÃÜËã·¨¡£ÆäÃÜÔ¿³¤¶ÈΪ56룬Ã÷ÎÄ°´64λ½øÐзÖ×飬½«·Ö×éºóµÄÃ÷ÎÄ×éºÍ56λµÄÃÜÔ¿°´Î»Ìæ´ú»ò½»»»µÄ·½·¨ÐγÉÃÜÎÄ×éµÄ¼ÓÃÜ·½·¨¡£
DES¼ÓÃÜËã·¨Ìص㣺·Ö×é±È½Ï¶Ì¡¢ÃÜÔ¿Ì«¶Ì¡¢ÃÜÂëÉúÃüÖÜÆڶ̡¢ÔËËãËٶȽÏÂý¡£
DES¹¤×÷ ......

javaÓëc++Óï·¨Çø±ð

//1.JavaÖÐ×Ö·û´®²»ÄܶàÐÐÊéд¡£¶àÐÐÊéдÓÃÒýºÅ¸ô¶Ï£¬¼ÓºÅÏàÁ¬¡£  
  //2.JavaµÄ±êʶ·û¿ÉÒÔÓÃÃÀÔª·ûºÅ¿ªÍ·¡£  
  //3.JavaÖÐûÓÐÎÞ·ûºÅ±äÁ¿»òÎÞ·ûºÅ³£Á¿µÄ¸ÅÄî¡£ËùÓеıäÁ¿¶¼ÊÇÓзûºÅµÄ¡£  
  //4.JavaÖбäÁ¿µÄ×Ö³¤Êǹ̶¨µÄ¡£²»´æÔÚcharºÍwcharÖ®·Ö¡£  
  //5.JavaÖбäÁ¿Î ......

javaµÄ·´Éä»úÖÆ

JAVAÓïÑÔÖеķ´Éä»úÖÆ£º
    ÔÚJava ÔËÐÐʱ »·¾³ÖУ¬¶ÔÓÚÈÎÒâÒ»¸öÀ࣬ÄÜ·ñÖªµÀÕâ¸öÀàÓÐÄÄЩÊôÐԺͷ½·¨£¿
    ¶ÔÓÚÈÎÒâÒ»¸ö¶ÔÏó£¬ÄÜ·ñµ÷ÓÃËûµÄ·½·¨£¿ÕâЩ´ð°¸Êǿ϶¨µÄ£¬ÕâÖÖ¶¯Ì¬»ñÈ¡ÀàµÄÐÅÏ¢£¬ÒÔ¼°¶¯Ì¬µ÷ÓÃÀàµÄ·½·¨µÄ¹¦ÄÜÀ´Ô´ÓÚJAVAµÄ·´Éä¡£´Ó¶øʹjava¾ßÓж¯Ì¬ÓïÑÔµÄÌØÐÔ¡£
  JAVA·´É ......

Java Ïß³Ì Thread ¶ÔÏóËøµÄwaitºÍnotify½âÎö

ͨ³££¬¶àÏß³ÌÖ®¼äÐèҪЭµ÷¹¤×÷¡£ÀýÈ磬ä¯ÀÀÆ÷µÄÒ»¸öÏÔʾͼƬµÄÏß³ÌdisplayThreadÏëÒªÖ´ÐÐÏÔʾͼƬµÄÈÎÎñ£¬±ØÐëµÈ´ýÏÂÔØÏß³ÌdownloadThread½«¸ÃͼƬÏÂÔØÍê±Ï¡£Èç¹ûͼƬ»¹Ã»ÓÐÏÂÔØÍ꣬displayThread¿ÉÒÔÔÝÍ££¬µ±downloadThreadÍê³ÉÁËÈÎÎñºó£¬ÔÙ֪ͨdisplayThread“ͼƬ׼±¸Íê±Ï£¬¿ÉÒÔÏÔʾÁË”£¬Õâʱ£¬displayThread ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ