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 UploadedFile
public String getFileName()
getFileName
in interface UploadedFile
public String getFilePath()
getFilePath
in interface UploadedFile
public long getSize()
getSize
in interface UploadedFile
public InputStream getStream()
getStream
in interface UploadedFile
public boolean isInMemory()
isInMemory
in interface UploadedFile
public void write(File file)
UploadedFile
write
in interface UploadedFile
file
- Location to write file topublic void cleanup()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.