public class NativeUploadedFile extends Object implements UploadedFile, Serializable
Constructor and Description |
---|
NativeUploadedFile() |
NativeUploadedFile(javax.servlet.http.Part part) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContents() |
String |
getContentType() |
String |
getFileName() |
InputStream |
getInputstream() |
long |
getSize() |
void |
write(String filePath)
Writes the uploaded file to the given file path.
|
public NativeUploadedFile()
public NativeUploadedFile(javax.servlet.http.Part part)
public String getFileName()
getFileName
in interface UploadedFile
public InputStream getInputstream() throws IOException
getInputstream
in interface UploadedFile
IOException
public long getSize()
getSize
in interface UploadedFile
public byte[] getContents()
getContents
in interface UploadedFile
public String getContentType()
getContentType
in interface UploadedFile
public void write(String filePath) throws Exception
UploadedFile
write
in interface UploadedFile
filePath
- The target file path.Exception
- If something went wrong.Copyright © 2016. All rights reserved.