public class MultipartStringsParser extends Object implements BodyParser<String[]>
Mime.MIME_MULTIPART_FORM_ENCODED_DATA
that parse parts as strings.Constructor and Description |
---|
MultipartStringsParser() |
Modifier and Type | Method and Description |
---|---|
String[] |
parseBody(InputStream inputStream,
String contentType)
Parse the body.
|
public String[] parseBody(InputStream inputStream, @Nullable String contentType) throws IOException
BodyParser
parseBody
in interface BodyParser<String[]>
inputStream
- the body InputStream
.contentType
- the "content-type"
header of the request.IOException
- when an IOException
occurs during the parsing.