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
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
This class is immutable. It overrides {@link Object#equals(Object)} and {@link Object#hashCode()}to allow comparing media types as described by RFC 2045, i.e. in a case insensitive way.
Since the type and subtype are defined in RFC 2616 to be case insensitive, these are stored in lower case. Parameters might be case sensitive and are stored in their original case.
The {@link #toString()} method outputs the type and subtype in lower case. @author Nigel Charman
Can also represent a non existent (i.e. empty) value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|