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 void
delete()
byte[]
getContent()
protected String
getContentDispositionFileName(String line)
String
getContentType()
String
getFileName()
InputStream
getInputStream()
javax.servlet.http.Part
getPart()
long
getSize()
void
write(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:
getFileName
in interfaceUploadedFile
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceUploadedFile
- Throws:
IOException
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceUploadedFile
-
getContent
public byte[] getContent()
- Specified by:
getContent
in interfaceUploadedFile
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceUploadedFile
-
write
public void write(String filePath) throws Exception
- Specified by:
write
in interfaceUploadedFile
- Throws:
Exception
-
delete
public void delete() throws IOException
- Specified by:
delete
in interfaceUploadedFile
- Throws:
IOException
-
getPart
public javax.servlet.http.Part getPart()
-
-