MCPcopy Create free account
hub / github.com/antlr/codebuff / withCharset

Method withCharset

output/java_guava/1.4.18/MediaType.java:786–789  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

withParameterMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected