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

java ²é¿´Îļþ¼ÐÏÂÃæËùÓÐÎļþÒÔ¼°Îļþ¼Ð

import java.io.File;
import java.util.Date;
import java.util.Iterator;
import java.util.Vector;
import java.text.SimpleDateFormat;
public class FileViewer {
  File myDir;
  File[] contents;
  Vector vectorList;
  Iterator currentFileView;
  File currentFile;
  String path;
  public FileViewer() {
    path = new String("");
    vectorList = new Vector();
  }
  public FileViewer(String path) {
    this.path = path;
    vectorList = new Vector();
  }
  /**
   * ÉèÖÃä¯ÀÀµÄ·¾¶
   */
  public void setPath(String path) {
    this.path = path;
  }
  /***
   * ·µ»Øµ±Ç°Ä¿Â¼Â·¾¶
   */
  public String getDirectory() {
    return myDir.getPath();
  }
  /**
   * Ë¢ÐÂÁбí
   */
  public void refreshList() {
    if (this.path.equals("")) {
      path = "c:\\";
    }
    myDir = new File(path);
    vectorList.clear();
    contents = myDir.listFiles();
    //ÖØÐÂ×°Èë·¾¶ÏÂÎļþ
    for (int i = 0; i < contents.length; i++) {
      vectorList.add(contents[i]);
    }
    currentFileView = vectorList.iterator();
  }
  /**
   * ÒÆ¶¯µ±Ç°Îļþ¼¯ºÏµÄÖ¸ÕëÖ¸µ½ÏÂÒ»¸öÌõÄ¿
   * @return ³É¹¦·µ»Øtrue,·ñÔòfalse
   */
  public boolean nextFile() {
    while (currentFileView.hasNext()) {
      currentFile = (File) currentFileView.next();
      return true;
    }
    return false;
  }
  /**
   * ·µ»Øµ±Ç°Ö¸ÏòµÄÎļþ¶ÔÏóµÄÎļþÃû³Æ
   */
  public String


Ïà¹ØÎĵµ£º

JavaʵÏÖMD5¼ÓÃܽâÃÜÀà

×ªÔØÇë×¢Ã÷:À´×Ôhttp://blog.csdn.net/M_ChangGong/ ×÷Õß:ÕÅÑà¹ã
JavaʵÏÖMD5¼ÓÃÜÒÔ¼°½âÃÜÀ࣬¸½´ø²âÊÔÀ࣬¾ßÌå¼û´úÂë¡£
MD5¼ÓÃܽâÃÜÀà——MyMD5Util,´úÂëÈçÏ£º
package com.zyg.security.md5;

import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import ja ......

JavaÖи÷ÀàCache»úÖÆÊµÏÖ½â¾ö·½°¸

ÎÄÕÂÀ´Ô´£ºhttp://java.chinaitlab.com/base/808164.html
ÔÚJavaÖУ¬²»Í¬µÄÀà¶¼ÓÐ×Ô¼ºµ¥¶ÀµÄCache»úÖÆ£¬ÊµÏֵķ½·¨Ò²¿ÉÄÜÓÐËù²»Í¬£¬ÎÄÕÂÁоÙÁËJavaÖг£¼ûµÄ¸÷ÀàCache»úÖÆµÄʵÏÖ·½·¨£¬Í¬Ê±½øÐÐÁË×ۺϵıȽϡ£
¡¡¡¡OSCache
¡¡¡¡OSCacheÊǸöÒ»¸ö¹ã·º²ÉÓõĸßÐÔÄܵÄJava EE»º´æ¿ò¼Ü£¬OSCacheÄÜÓÃÓÚÈκÎJavaÓ¦ÓóÌÐòµÄÆÕͨµÄ» ......

ѧJAVAÐèÒªÕÆÎյļ¼Êõ¼°Á÷³Ì


ѧJAVAÐèÒªÕÆÎյļ¼Êõ¼°Á÷³Ì
¶ÔÓÚjava³õѧÕßÀ´ËµÅÓ´óµÄJavaÓïÑÔ²»Öªµ½´ÓÄÄÀïÈëÊÖ¿ªÊ¼Ñ§Ï°£¬Ò²²»ÖªµÀ¶¼ÒªÑ§Ð©Ê²Ã´²ÅÄÜ·ûºÏÆóÒµµÄÒªÇó£¬ÒÔÏÂÊÇjava˽ÛÓ¸ù¾Ý¼¼ÊõµÄ¸üжøµ÷ÕûµÄ×îнÌѧÄÚÈݼ°Á÷³Ì£¬¹©´ó¼Ò²Î¿¼¡£
1.javaµÄ»ù´¡ÖªÊ¶
²»Òª±»Ð¼¼ÊõÃÔ»ó£¬ËùνÍò±ä²»ÀëÆä×Ú£¬Ð¼¼Êõ¶¼ÊÇ»ùÓÚjavaµÄ»ù´¡Ö®ÉÏ£¬Èç¹û»ù´¡²»Ôúʵ£¬¶Ô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ