org.primefaces.model
Class DefaultUploadedFile
java.lang.Object
org.primefaces.model.DefaultUploadedFile
- All Implemented Interfaces:
- Serializable, UploadedFile
public class DefaultUploadedFile
- extends Object
- implements UploadedFile, Serializable
UploadedFile implementation based on Commons FileUpload FileItem
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUploadedFile
public DefaultUploadedFile()
DefaultUploadedFile
public DefaultUploadedFile(org.apache.commons.fileupload.FileItem fileItem)
getFileName
public String getFileName()
- Specified by:
getFileName
in interface UploadedFile
getInputstream
public InputStream getInputstream()
throws IOException
- Specified by:
getInputstream
in interface UploadedFile
- Throws:
IOException
getSize
public long getSize()
- Specified by:
getSize
in interface UploadedFile
getContents
public byte[] getContents()
- Specified by:
getContents
in interface UploadedFile
getContentType
public String getContentType()
- Specified by:
getContentType
in interface UploadedFile
Copyright © 2013. All rights reserved.