public static interface Payload.Part
| Modifier and Type | Method and Description |
|---|---|
void |
copy(OutputStream os)
Copies the contents of the Part to the specified OutputStream.
|
String |
getContentType()
Returns the content type of the part.
|
File |
getExtracted()
File where content was extracted from the payload.
|
InputStream |
getInputStream()
Returns an InputStream suitable for reading the content of the Part.
|
String |
getName()
Returns the name assigned to the part when it was created.
|
Properties |
getProperties()
Returns the Properties associated with the Part.
|
boolean |
isRecursive()
Indicates if the Part represents a recursive action or not.
|
void |
setExtracted(File extractedFile)
Extractor of content can note where the content was extracted.
|
String getName()
String getContentType()
Properties getProperties()
InputStream getInputStream()
void copy(OutputStream os) throws IOException
os - target OutputStream to receive the content of the PartIOExceptionboolean isRecursive()
void setExtracted(File extractedFile)
extractedFile - File getExtracted()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.