Package org.primefaces.model.file
Class NativeUploadedFile
- java.lang.Object
-
- org.primefaces.model.file.NativeUploadedFile
-
- All Implemented Interfaces:
Serializable,UploadedFile
public class NativeUploadedFile extends Object implements UploadedFile, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NativeUploadedFile()NativeUploadedFile(javax.servlet.http.Part part, Long sizeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()byte[]getContent()protected StringgetContentDispositionFileName(String line)StringgetContentType()StringgetFileName()InputStreamgetInputStream()javax.servlet.http.PartgetPart()longgetSize()voidwrite(String filePath)
-
-
-
Constructor Detail
-
NativeUploadedFile
public NativeUploadedFile()
-
NativeUploadedFile
public NativeUploadedFile(javax.servlet.http.Part part, Long sizeLimit)
-
-
Method Detail
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfaceUploadedFile
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceUploadedFile- Throws:
IOException
-
getSize
public long getSize()
- Specified by:
getSizein interfaceUploadedFile
-
getContent
public byte[] getContent()
- Specified by:
getContentin interfaceUploadedFile
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceUploadedFile
-
write
public void write(String filePath) throws Exception
- Specified by:
writein interfaceUploadedFile- Throws:
Exception
-
delete
public void delete() throws IOException- Specified by:
deletein interfaceUploadedFile- Throws:
IOException
-
getPart
public javax.servlet.http.Part getPart()
-
-