| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Get the content type of the part
|
InputStream |
getInputStream()
Get the input stream of the part
|
String |
getName()
Get the file name of the part
|
long |
getSize()
Retrieve the size of this FilePart, in bytes
|
String |
getValue()
Get the simple value of the part
|
boolean |
isFormField()
Whether the part is a simple form field
|
void |
write(File file)
Write the part to the given file
|
public String getName()
FilePartpublic InputStream getInputStream() throws IOException
FilePartgetInputStream in interface FilePartIOException - If an error occuredpublic String getContentType()
FilePartgetContentType in interface FilePartpublic void write(File file) throws IOException
FilePartwrite in interface FilePartfile - The file to write the part toIOExceptionpublic String getValue()
FilePartpublic boolean isFormField()
FilePartisFormField in interface FilePartCopyright © 2017 Atlassian. All rights reserved.