public class NativeUploadedFile extends Object implements UploadedFile, Serializable
| Constructor and Description |
|---|
NativeUploadedFile() |
NativeUploadedFile(javax.servlet.http.Part part,
Long sizeLimit) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent() |
protected String |
getContentDispositionFileName(String line) |
String |
getContentType() |
String |
getFileName() |
InputStream |
getInputStream() |
javax.servlet.http.Part |
getPart() |
long |
getSize() |
void |
write(String filePath)
Writes the uploaded file to the given file path.
|
public NativeUploadedFile()
public NativeUploadedFile(javax.servlet.http.Part part,
Long sizeLimit)
public String getFileName()
getFileName in interface UploadedFilepublic InputStream getInputStream() throws IOException
getInputStream in interface UploadedFileIOExceptionpublic long getSize()
getSize in interface UploadedFilepublic byte[] getContent()
getContent in interface UploadedFilepublic String getContentType()
getContentType in interface UploadedFilepublic void write(String filePath) throws Exception
UploadedFilewrite in interface UploadedFilefilePath - The target file path.Exception - If something went wrong.public javax.servlet.http.Part getPart()
Copyright © 2020. All rights reserved.