files.java

来自「在一个大的项目中建立小的子应用,这样就可以一个项目同时有几个小分队开发.可以完成」· Java 代码 · 共 57 行

JAVA
57
字号
package ups;

//Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-4-28 13:59:09
//Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
//Decompiler options: packimports(3) 
//Source File Name:   files.java


import java.util.Hashtable;

//Referenced classes of package xiaoxiang.fileUpload:
//         file

public class files
{

 protected files()
 {
     hFiles = new Hashtable();
     count = 0;
     totalSize = 0L;
 }

 protected void addFile(file pFile)
 {
     hFiles.put(new Integer(count), pFile);
     count++;
     totalSize += pFile.getSize();
 }

 public file getFile(int pCount)
     throws Exception
 {
     if(pCount >= count || pCount <= -1)
     {
         throw new Exception("\u53C2\u6570\u9519\u8BEF");
     } else
     {
         file tempFile = (file)hFiles.get(new Integer(pCount));
         return tempFile;
     }
 }

 public int getCount()
 {
     return count;
 }

 public long getSize()
 {
     return totalSize;
 }

 private Hashtable hFiles;
 private long totalSize;
 private int count;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?