Parser and well-known media-type constants.
application/json; charset=utf-8.
application/json; charset=utf-8
application/octet-stream.
application/octet-stream
text/plain; charset=utf-8.
text/plain; charset=utf-8
Parses a media-type string of the form type/subtype optionally followed by ; key=value parameters. The type, subtype, and any charset parameter are lower-cased; the original string is preserved for toString. Returns null when value is not parseable.
type/subtype
; key=value
charset
null