EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana.event
Class UploadFinishEvent

java.lang.Object
  extended by java.util.EventObject
      extended by echopoint.tucana.event.UploadEvent
          extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UploadFinishEvent(FileUploadSelector source, String index, String fileName, String contentType, org.apache.commons.fileupload.FileItem item)
          Creates a new UploadEvent.
 
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.
 
Methods inherited from class echopoint.tucana.event.UploadEvent
getContentType, getFileName, getIndex
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 event
index - the index of the upload
fileName - the name of the file, may not contain path information
contentType - the content type of the uploaded file
item - The file item that represents the uploaded file.
Method Detail

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.

EchoPoint API - 3.0.0b5
App Webcontainer