public interface FilePart
| 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
|
String getName()
String getContentType()
void write(File file) throws IOException
file - The file to write the part toIOExceptionInputStream getInputStream() throws IOException
IOException - If an error occuredString getValue()
boolean isFormField()
long getSize()
Copyright © 2017 Atlassian. All rights reserved.