Guava has a utility class for media type declarations (MediaType). However, it states in the Javadocs:
Note that this specifically does not represent the value of the MIME Content-Type header and as such has no support for header-specific considerations such as line folding and comments.
What does this mean? From what I can tell, the representation of media types is exactly the same as what's used in the Content-Type header. What will the problem be if I'm setting the Content-Type field using MediaType instances?