Serializable, UploadedFilepublic class NativeUploadedFile extends Object implements UploadedFile, Serializable
| Constructor | Description |
|---|---|
NativeUploadedFile() |
|
NativeUploadedFile(javax.servlet.http.Part part,
FileUpload fileUpload) |
| Modifier and Type | Method | Description |
|---|---|---|
protected String |
getContentDispositionFileName(String line) |
|
byte[] |
getContents() |
|
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,
FileUpload fileUpload)
public String getFileName()
getFileName in interface UploadedFilepublic InputStream getInputstream() throws IOException
getInputstream in interface UploadedFileIOExceptionpublic long getSize()
getSize in interface UploadedFilepublic byte[] getContents()
getContents 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 © 2018. All rights reserved.