Guava has MediaType class. It may be useful