public class MimeType
extends com.google.gwt.core.client.JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
MimeType()
Constructs a new MimeType object
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of the MIME type
|
BrowserPlugin |
getEnabledPlugin()
Returns the plug-in configured for the MIME type
|
static MimeType |
getMimeType(String type)
Returns a MimeType object with the specified
type |
static com.google.gwt.core.client.JsArray<MimeType> |
getMimeTypes()
Returns an array of all MIME types supported by the browser
|
String |
getSuffixes()
Returns a listing of the filename extensions of the MIME type
|
String |
getType()
Returns the name of the MIME type such as "video/mpeg"
|
public final String getDescription()
public final String getType()
public final BrowserPlugin getEnabledPlugin() throws PluginNotFoundException
BrowserPlugin
configured for the MIME typePluginNotFoundException
- if no plugin is found e.g. when plugin is disabled.public final String getSuffixes()
public static final com.google.gwt.core.client.JsArray<MimeType> getMimeTypes()
MimeType
sCopyright © 2009-2013. All Rights Reserved.