Returns a new instance with the same type and subtype as this instance, with the charset parameter set to the Charset#name name of the given charset. Only one charset parameter will be present on the new instance regardless of the number set on this one. If a charset must
(Charset charset)
| 784 | |
| 785 | |
| 786 | public MediaType withCharset(Charset charset) { |
| 787 | checkNotNull(charset); |
| 788 | return withParameter(CHARSET_ATTRIBUTE, charset.name()); |
| 789 | } |
| 790 | |
| 791 | /** Returns true if either the type or subtype is the wildcard. */ |
| 792 |
nothing calls this directly
no test coverage detected