files.java

来自「税务端受理系统java版 增值税网上认证」· Java 代码 · 共 76 行

JAVA
76
字号
// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov  Date: 2004-09-14 11:12:51// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!// Decompiler options: packimports(3)// Source File Name:   Files.javapackage com.jspsmart.upload;import java.io.IOException;import java.util.*;// Referenced classes of package com.jspsmart.upload://            File, SmartUploadpublic class Files{    Files()    {        m_files = new Hashtable();        m_counter = 0;    }    protected void addFile(File file)    {        if(file == null)        {            throw new IllegalArgumentException("newFile cannot be null.");        } else        {            m_files.put(new Integer(m_counter), file);            m_counter++;            return;        }    }    public File getFile(int i)    {        if(i < 0)            throw new IllegalArgumentException("File's index cannot be a negative value (1210).");        File file = (File)m_files.get(new Integer(i));        if(file == null)            throw new IllegalArgumentException("Files' name is invalid or does not exist (1205).");        else            return file;    }    public int getCount()    {        return m_counter;    }    public long getSize()        throws IOException    {        long l = 0L;        for(int i = 0; i < m_counter; i++)            l += getFile(i).getSize();        return l;    }    public Collection getCollection()    {        return m_files.values();    }    public Enumeration getEnumeration()    {        return m_files.elements();    }    private SmartUpload m_parent;    private Hashtable m_files;    private int m_counter;}

⌨️ 快捷键说明

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