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

Java zip ½âѹËõAPI

²ÎÊý˵Ã÷
fileName£º ±íʾÏë½âѹµÄÎļþÃû   È磺c:\\aaa\a.zip
unZipDir£º  ±íʾÏë½âѹµ½µÄ·¾¶   È磺c:\\ccc
public static void unZip1(String fileName, String unZipDir) {
        try {
            File f = new File(unZipDir);
            if (!f.exists()) {
                f.mkdirs();
            }
            BufferedOutputStream dest = null;
            BufferedInputStream is = null;
            ZipEntry entry;
            ZipFile zipfile = new ZipFile(fileName);
            Enumeration e = zipfile.entries();
            while (e.hasMoreElements()) {
                entry = (ZipEntry) e.nextElement();
                if (entry.isDirectory()) {
                    makeDir(unZipDir + File.separator + entry.getName());
                } else {
                    is = new BufferedInputStream(zipfile.getInputStream(entry));
                    int count;
                    byte data[] = new byte[BUFFER];
             &nbs


Ïà¹ØÎĵµ£º

JAVAËÄÖÖ»ù±¾ÅÅÐò

JAVAËÄÖÖ»ù±¾ÅÅÐò,°üÀ¨Ã°ÅÝ·¨,²åÈë·¨,Ñ¡Ôñ·¨,SHELLÅÅÐò·¨.ÆäÖÐÑ¡Ôñ·¨ÊÇðÅÝ·¨µÄ¸Ä½ø,SHELLÅÅÐò·¨ÊÇ ²åÈë·¨µÄ¸Ä½ø.ËùÒÔ´Ó¸ù±¾ÉÏÀ´Ëµ¿ÉÒÔ¹éÄÉΪÁ½ÖÖ²»Í¬µÄÅÅÐò·½·¨:¼´:²åÈë·¨£¦Ã°ÅÝ·¨
   Ò» ²åÈë·¨:±éÀúÅÅÐò¼¯ºÏ£¬Ã¿µ½Ò»¸öÔªËØÊ±£¬¶¼Òª½«Õâ¸öÔªËØÓëËùÓÐËü֮ǰµÄÔªËØ±éÀú±È½ÏÒ»±é£¬È÷ûºÏÅÅÐò˳ÐòµÄÔªËØ°¤¸öÒÆ¶¯µ½µ ......

ÀûÓÃJava SwingÉè¼Æ±ê×¼¶Ô»°¿ò

SwingÖÐÌṩÁËJOptionPaneÀàÀ´ÊµÏÖÀàËÆWindowsƽ̨ϵÄMessageBoxµÄ¹¦ÄÜ£¬Í¬ÑùÔÚJavaÖÐÒ²ÓУ¬ÀûÓÃJOptionPaneÀàÖеĸ÷¸östatic·½·¨À´Éú³É¸÷ÖÖ±ê×¼µÄ¶Ô»°¿ò£¬ÊµÏÖÏÔʾ³öÐÅÏ¢¡¢Ìá³öÎÊÌâ¡¢¾¯¸æ¡¢Óû§ÊäÈë²ÎÊýµÈ¹¦ÄÜ¡£ÕâЩ¶Ô»°¿ò¶¼ÊÇģʽ¶Ô»°¿ò¡£
¡¡¡¡ConfirmDialog¡¡---¡¡È·È϶Ի°¿ò£¬Ìá³öÎÊÌ⣬ȻºóÓÉÓû§×Ô¼ºÀ´È·ÈÏ£¨°´"Ye ......

¹é²¢ÅÅÐòËã·¨µÄJAVAʵÏÖ

package Utils.Sort;
/**
*¹é²¢ÅÅÐò£¬ÒªÇó´ýÅÅÐòµÄÊý×鱨ÐëʵÏÖComparable½Ó¿Ú
*/
public class MergeSort implements SortStrategy
{
       private Comparable[] bridge;
       /**
       *ÀûÓù鲢ÅÅÐòË ......

JAVA±à³Ìѧϰ·½·¨·ÖÏí Àϼ¼ÊõÈËÔ±µÄ¾­Ñé̸֮

ÎÒÊÇ2000Äê´óѧ±ÏÒµ,ÔÚѧУѧµÄÊǾ­¼Ãרҵ,±ÏÒµºó×öJAVAÈí¼þ¿ª·¢.  
 
ÏàÐźܶà×ö¼¼ÊõµÄÅóÓѶ¼ÊÇ´ÓÆäËûÐÐҵת¹ýÀ´µÄ
ew roman';">,ѧϰ±à³ÌµÄ¹ý³ÌºÍ¾­Ñé¸÷²»Ò»Ñù,ÎÒ½«×Ô¼ºµÄ´ÓÒµ¾­ÀúдÁ˳öÀ´,Çë¼û:  
 
http://www.jobhotel.com.cn/yourbay/news-2.jsp?id=15353  
  ......

JavaÖÐReadOnlyµÄ¼¯ºÏ

½ñÌìÔÚCSDN¹äÂÛ̳µÄʱºòÎÞÒâÖз¢ÏÖÓÐÈËÎÊÔÚJavaÖÐÊÇ·ñÓÐReadOnly²Ù×÷·½Ê½µÄ¼¯ºÏ£¬ËµÊµ»°ÔÚÒÔÍù¿ª·¢Öи÷ÖÖ¼¯ºÏÓõĺܶ࣬µ«ÊÇÕâ¸öÎÊÌâ»¹ÕæÃ»ÓÐ×¢Òâ¹ý¡£È¥JavaµÄ¹Ù·½APIÎĵµ²éÁËһϣ¬CollectionsÖл¹ÕæÓÐÕâô¸ö·½·¨Ö§³Ö£¬·½·¨Ô­ÐÍÈçÏ£º
unmodifiableCollection
public static <T> Collection<T> unmodifiable ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ