public class MultiPartInputStreamParser.MultiPart extends Object implements Part
| Constructor and Description |
|---|
MultiPart(String name,
String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Only remove tmp files.
|
void |
delete()
Remove the file, whether or not Part.write() was called on it
(ie no longer temporary)
|
byte[] |
getBytes() |
String |
getContentDispositionFilename()
Get the filename from the content-disposition.
|
String |
getContentType() |
File |
getFile()
Get the file
|
String |
getHeader(String name) |
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String name) |
InputStream |
getInputStream() |
String |
getName() |
long |
getSize() |
String |
getSubmittedFileName() |
String |
toString() |
void |
write(String fileName) |
public MultiPart(String name, String filename) throws IOException
IOExceptionpublic String getContentType()
getContentType in interface PartPart.getContentType()public String getHeader(String name)
getHeader in interface PartPart.getHeader(java.lang.String)public Collection<String> getHeaderNames()
getHeaderNames in interface PartPart.getHeaderNames()public Collection<String> getHeaders(String name)
getHeaders in interface PartPart.getHeaders(java.lang.String)public InputStream getInputStream() throws IOException
getInputStream in interface PartIOExceptionPart.getInputStream()public String getSubmittedFileName()
getSubmittedFileName in interface PartPart.getSubmittedFileName()public byte[] getBytes()
public String getName()
getName in interface PartPart.getName()public long getSize()
getSize in interface PartPart.getSize()public void write(String fileName) throws IOException
write in interface PartIOExceptionPart.write(java.lang.String)public void delete()
throws IOException
delete in interface PartIOExceptionPart.delete()public void cleanUp()
throws IOException
IOException - if unable to delete the filepublic File getFile()
public String getContentDispositionFilename()
Copyright © 2010 - 2020 Adobe. All Rights Reserved