public class UploadedFileItem extends Object implements UploadedFile
UploadedFile for FileItems.| Constructor and Description |
|---|
UploadedFileItem(org.apache.commons.fileupload.FileItem item) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
String |
getContentType() |
String |
getFileName() |
String |
getFilePath() |
long |
getSize() |
InputStream |
getStream() |
boolean |
isInMemory() |
void |
write(File file)
Writes the content of the file to a known location.
|
public UploadedFileItem(org.apache.commons.fileupload.FileItem item)
public String getContentType()
getContentType in interface UploadedFilepublic String getFileName()
getFileName in interface UploadedFilepublic String getFilePath()
getFilePath in interface UploadedFilepublic long getSize()
getSize in interface UploadedFilepublic InputStream getStream()
getStream in interface UploadedFilepublic boolean isInMemory()
isInMemory in interface UploadedFilepublic void write(File file)
UploadedFilewrite in interface UploadedFilefile - Location to write file topublic void cleanup()
5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.