Package org.primefaces.model.file
Class CommonsUploadedFile
java.lang.Object
org.primefaces.model.file.CommonsUploadedFile
- All Implemented Interfaces:
Serializable,UploadedFile
Default UploadedFile implementation based on Commons FileUpload FileItem
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommonsUploadedFile(org.apache.commons.fileupload.FileItem fileItem, Long sizeLimit) -
Method Summary
-
Constructor Details
-
CommonsUploadedFile
public CommonsUploadedFile() -
CommonsUploadedFile
-
-
Method Details
-
getFileName
- Specified by:
getFileNamein interfaceUploadedFile
-
getInputStream
- Specified by:
getInputStreamin interfaceUploadedFile- Throws:
IOException
-
getSize
public long getSize()- Specified by:
getSizein interfaceUploadedFile
-
getContent
public byte[] getContent()- Specified by:
getContentin interfaceUploadedFile
-
getContentType
- Specified by:
getContentTypein interfaceUploadedFile
-
write
- Specified by:
writein interfaceUploadedFile- Throws:
Exception
-
delete
- Specified by:
deletein interfaceUploadedFile- Throws:
IOException
-