-second odd-row-color"><span class="type-name-label">MediaType.</span><code><a href="../MediaType.html#withCharset(java.lang.String)" class="member-name-link">withCharset</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;charset)</code></div>
<div class="col-last odd-row-color">
<div class="block">Create a new <code>MediaType</code> instance with the same type, subtype and parame