public class FilePart extends AbstractPart implements FilePartForSend
contentType, name| Constructor and Description |
|---|
FilePart(String name,
File file) |
FilePart(String name,
String file) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
String |
getAbsolutePath() |
InputStream |
getInputStream() |
long |
getSize() |
boolean |
isDeleteAfterFinished() |
FilePart |
setDeleteAfterFinished(boolean deleteAfterFinished) |
void |
write(String fileName) |
contentType, getContentType, getHeader, getHeaderNames, getHeaders, getName, getSubmittedFileName, setSubmittedFileNamepublic InputStream getInputStream() throws IOException
getInputStream in interface javax.servlet.http.PartgetInputStream in class AbstractPartIOExceptionpublic long getSize()
getSize in interface javax.servlet.http.PartgetSize in class AbstractPartpublic void write(String fileName) throws IOException
write in interface javax.servlet.http.Partwrite in class AbstractPartIOExceptionpublic void delete()
throws IOException
delete in interface javax.servlet.http.Partdelete in class AbstractPartIOExceptionpublic boolean isDeleteAfterFinished()
isDeleteAfterFinished in interface FilePartForSendpublic FilePart setDeleteAfterFinished(boolean deleteAfterFinished)
public String getAbsolutePath()
getAbsolutePath in interface FilePartForSendCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.