⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 files.java

📁 经典的“企业内部管理信息系统”JSP源代码
💻 JAVA
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2004-9-28 23:56:36
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   files.java

package xiaoxiang.fileUpload;

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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -