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