com.jspsmart.upload
Class Files

java.lang.Object
  |
  +--com.jspsmart.upload.Files

public class Files
extends java.lang.Object

A collection of uploaded files. This is a dependant object wich can't be directly instantiate.


Method Summary
 java.util.Collection getCollection()
          Returns a Collection to browse the files.
 int getCount()
          Returns the number of files in the collection.
 java.util.Enumeration getEnumeration()
          Returns an Enumeration to browse the files.
 File getFile(int index)
          Returns the file object corresponding to the index.
 long getSize()
          Returns the size of all files of the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFile

public File getFile(int index)
Returns the file object corresponding to the index.
Parameters:
index - index of the input file
Returns:
a file

getCount

public int getCount()
Returns the number of files in the collection.
Returns:
the number of files

getSize

public long getSize()
             throws java.io.IOException
Returns the size of all files of the collection.
Returns:
the size of all files

getCollection

public java.util.Collection getCollection()
Returns a Collection to browse the files.
Returns:
the Collection

getEnumeration

public java.util.Enumeration getEnumeration()
Returns an Enumeration to browse the files.
Returns:
the Enumeration