Package org.robolectric.shadows
Class ShadowMimeTypeMap
java.lang.Object
org.robolectric.shadows.ShadowMimeTypeMap
@Implements(android.webkit.MimeTypeMap.class) public class ShadowMimeTypeMap extends Object
-
Constructor Summary
Constructors Constructor Description ShadowMimeTypeMap()
-
Method Summary
Modifier and Type Method Description void
addExtensionMimeTypMapping(String extension, String mimeType)
void
clearMappings()
protected String
getExtensionFromMimeType(String mimeType)
protected String
getMimeTypeFromExtension(String extension)
protected static MimeTypeMap
getSingleton()
protected boolean
hasExtension(String extension)
protected boolean
hasMimeType(String mimeType)
static void
reset()
-
Constructor Details
-
ShadowMimeTypeMap
public ShadowMimeTypeMap()
-
-
Method Details
-
getSingleton
-
reset
-
getMimeTypeFromExtension
-
getExtensionFromMimeType
-
addExtensionMimeTypMapping
-
clearMappings
public void clearMappings() -
hasExtension
-
hasMimeType
-