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