public class StringBodyParser extends Object implements BodyParser<String>
| Constructor and Description | 
|---|
| StringBodyParser() | 
| 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
BodyParserparseBody in interface BodyParser<String>inputStream - the body InputStream.contentType - the "content-type" header of the request.IOException - when an IOException occurs during the parsing.