(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;type)</pre>
<div class="block">Creates a new instance of <code>MediaType</code> by parsing the supplied string.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the media type string.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the newly created MediaType.</dd>
<dt><span class="throwsLabel">Throws:</span></dt