SyntaxFix
Write A Post
Hire A Developer
Questions
We have a Guava class for this: com.google.common.net.MediaType.
com.google.common.net.MediaType
It was released with Guava 12 as stated in the source code and in Issue 823. Sources are available, too.