src/util/upload/SmartFiles.java
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package util.upload;
import java.io.IOException;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Hashtable;
public class SmartFiles
{
//private SmartUpload m_parent;
private Hashtable m_files;
private int m_counter;
SmartFiles()
{
m_files = new Hashtable();
m_counter = 0;
}
protected void addFile(SmartFile file)
{
if(file == null)
{
throw new IllegalArgumentException("newFile cannot be null.");
}
else
{
m_files.put(new Integer(m_counter),file);
m_counter++;
return;
}
}
public SmartFile getFile(int i)
{
if(i < 0)
{
throw new IllegalArgumentException("File's index cannot be a negative value (1210).");
}
SmartFile file = (SmartFile)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++)
{
后面还有 15 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
