org.primefaces.model
Class DefaultUploadedFile

java.lang.Object
  extended by 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

Constructor Summary
DefaultUploadedFile()
           
DefaultUploadedFile(org.apache.commons.fileupload.FileItem fileItem)
           
 
Method Summary
 byte[] getContents()
           
 String getContentType()
           
 String getFileName()
           
 InputStream getInputstream()
           
 long getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUploadedFile

public DefaultUploadedFile()

DefaultUploadedFile

public DefaultUploadedFile(org.apache.commons.fileupload.FileItem fileItem)
Method Detail

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.