Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

com.nova.colimas.utils.UploadedFile Class Reference

List of all members.

Public Member Functions

 UploadedFile (DefaultFileItem item)
 UploadedFile (FormFile aFormFile)
File getFile ()
InputStream getInputStream () throws IOException
String getOriginalPath ()
String getOriginalName ()
String getContentType ()
void delete ()

Protected Member Functions

void finalize ()

Detailed Description

Author:
tyrone
Utility class to store an uploaded file.


Constructor & Destructor Documentation

com.nova.colimas.utils.UploadedFile.UploadedFile DefaultFileItem  item  ) 
 

Constructor from FileUpload API

com.nova.colimas.utils.UploadedFile.UploadedFile FormFile  aFormFile  ) 
 

Constructor from Struts API


Member Function Documentation

void com.nova.colimas.utils.UploadedFile.delete  ) 
 

Delete the file

void com.nova.colimas.utils.UploadedFile.finalize  )  [protected]
 

Closes any stream

String com.nova.colimas.utils.UploadedFile.getContentType  ) 
 

Returns the contentType.

Returns:
String

File com.nova.colimas.utils.UploadedFile.getFile  ) 
 

Returns the file.

Returns:
File

InputStream com.nova.colimas.utils.UploadedFile.getInputStream  )  throws IOException
 

Returns the input stream.

String com.nova.colimas.utils.UploadedFile.getOriginalName  ) 
 

Get the original name

String com.nova.colimas.utils.UploadedFile.getOriginalPath  ) 
 

Returns the originalPath.

Returns:
String


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:26 2006 for Colimas by  doxygen 1.4.4