All portions of the media type that are case-insensitive (type, subtype, parameter attributes) are normalized to lowercase. The value of the {@code charset} parameter is normalized tolowercase, but all others are left as-is.
Note that this specifically does not represent the value of the MIME {@code Content-Type} header and as such has no support for header-specific considerations such asline folding and comments.
For media types that take a charset the predefined constants default to UTF-8 and have a "_UTF_8" suffix. To get a version without a character set, use {@link #withoutParameters}. @since 12.0 @author Gregory Kick
|
|
|
|