Gets the character set, or returns a default value.
Gets the character set, or returns UTF8.
Check if this media type is compatible with another media type.
Check if this media type is compatible with another media type. E.g. image*/* is compatible with image/jpeg, image/png, etc. The function is commutative.
the media type to compare with
true if the types are compatible, false otherwise.
Tests whether a media type represents textual traffic.
Tests whether a media type represents textual traffic. This is true for all content with the type
of
"text" and also for those "application" types with json, xml, or ...+xml subtypes.
Checks if the subtype is a wildcard.
Checks if the subtype is a wildcard.
true if the subtype is a wildcard
Checks if the primary type is a wildcard.
Checks if the primary type is a wildcard.
true if the primary type is a wildcard
Gets the main/sub type of this media type.
Gets the main/sub type of this media type. That is, the textual representation without any charset.
Gets this media type as a Qualifiers, which is the form used within QualifiedValue.
Gets mediaType
and appends the charset, if there is one.
Creates a new instance with a different charset.
Provides a media type. Also known as a MIME type or content type.