org.primefaces.model
Class NativeUploadedFile

java.lang.Object
  extended by org.primefaces.model.NativeUploadedFile
All Implemented Interfaces:
Serializable, UploadedFile

public class NativeUploadedFile
extends Object
implements UploadedFile, Serializable

See Also:
Serialized Form

Constructor Summary
NativeUploadedFile()
           
NativeUploadedFile(javax.servlet.http.Part part)
           
 
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

NativeUploadedFile

public NativeUploadedFile()

NativeUploadedFile

public NativeUploadedFile(javax.servlet.http.Part part)
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.