Class UploadedFileItem
- java.lang.Object
 - 
- org.apache.tapestry5.upload.internal.services.UploadedFileItem
 
 
- 
- All Implemented Interfaces:
 UploadedFile
public class UploadedFileItem extends Object implements UploadedFile
Implentation ofUploadedFilefor FileItems. 
- 
- 
Constructor Summary
Constructors Constructor Description UploadedFileItem(org.apache.commons.fileupload.FileItem item) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()StringgetContentType()StringgetFileName()StringgetFilePath()longgetSize()InputStreamgetStream()booleanisInMemory()voidwrite(File file)Writes the content of the file to a known location. 
 - 
 
- 
- 
Constructor Detail
- 
UploadedFileItem
public UploadedFileItem(org.apache.commons.fileupload.FileItem item)
 
 - 
 
- 
Method Detail
- 
getContentType
public String getContentType()
- Specified by:
 getContentTypein interfaceUploadedFile- Returns:
 - the MIME type specified when the file was uploaded.
 
 
- 
getFileName
public String getFileName()
- Specified by:
 getFileNamein interfaceUploadedFile- Returns:
 - the name of the file that was uploaded.
 
 
- 
getFilePath
public String getFilePath()
- Specified by:
 getFilePathin interfaceUploadedFile- Returns:
 - the complete path, as reported by the client browser.
 
 
- 
getSize
public long getSize()
- Specified by:
 getSizein interfaceUploadedFile- Returns:
 - the size, in bytes, of the uploaded content.
 
 
- 
getStream
public InputStream getStream()
- Specified by:
 getStreamin interfaceUploadedFile- Returns:
 - an input stream of the content of the file.
 
 
- 
isInMemory
public boolean isInMemory()
- Specified by:
 isInMemoryin interfaceUploadedFile- Returns:
 - true if the uploaded content is in memory.
 
 
- 
write
public void write(File file)
Description copied from interface:UploadedFileWrites the content of the file to a known location.- Specified by:
 writein interfaceUploadedFile- Parameters:
 file- Location to write file to
 
- 
cleanup
public void cleanup()
 
 - 
 
 -