public static interface MediaType.WithOpenCharset extends MediaType.NonBinary
MediaType.Binary, MediaType.Compressibility, MediaType.Multipart, MediaType.NonBinary, MediaType.WithFixedCharset, MediaType.WithOpenCharset
Modifier and Type | Method and Description |
---|---|
ContentType.WithCharset |
toContentType(HttpCharset charset)
Turns the media type into a content type with the given charset.
|
ContentType.WithMissingCharset |
toContentTypeWithMissingCharset()
Turns the media type into a content type without specifying a charset.
|
binary, isApplication, isAudio, isCompressible, isImage, isMessage, isMultipart, isText, isVideo, mainType, subType, toRange, toRange
ContentType.WithCharset toContentType(HttpCharset charset)
charset
- (undocumented)ContentType.WithMissingCharset toContentTypeWithMissingCharset()
This is generally NOT what you want, since you're hiding the actual character encoding of your content, making decoding it possibly ambiguous.
Consider using toContentType(charset: HttpCharset) instead.