echopoint.tucana.event
Class UploadFinishEvent
java.lang.Object
java.util.EventObject
echopoint.tucana.event.UploadEvent
echopoint.tucana.event.UploadFinishEvent
- All Implemented Interfaces:
- Serializable
public class UploadFinishEvent
- extends UploadEvent
An event indicating that a file upload has finished.
Note: Development of this component was sponsored by TCN
Broadcasting. We are grateful for their support and sponsorship.
- Version:
- $Id: UploadFinishEvent.java 90 2008-11-11 01:41:05Z sptrakesh $
- Author:
- Echo File Transfer Library
- See Also:
- Serialized Form
|
Method Summary |
org.apache.commons.fileupload.FileItem |
getFileItem()
Accessor for property 'fileItem'. |
long |
getFileSize()
Return the size (in bytes) of the file that was uploaded. |
UploadFinishEvent
public UploadFinishEvent(FileUploadSelector source,
String index,
String fileName,
String contentType,
org.apache.commons.fileupload.FileItem item)
- Creates a new
UploadEvent.
- Parameters:
source - the source of the eventindex - the index of the uploadfileName - the name of the file, may not contain path informationcontentType - the content type of the uploaded fileitem - The file item that represents the uploaded file.
getFileItem
public org.apache.commons.fileupload.FileItem getFileItem()
- Accessor for property 'fileItem'.
- Returns:
- Value for property 'fileItem'.
getFileSize
public long getFileSize()
- Return the size (in bytes) of the file that was uploaded.
- Returns:
- The file size in bytes.