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
All Methods Static Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
getSingleton
@Implementation protected static MimeTypeMap getSingleton()
-
reset
@Resetter public static void reset()
-
getMimeTypeFromExtension
@Implementation protected String getMimeTypeFromExtension(String extension)
-
getExtensionFromMimeType
@Implementation protected String getExtensionFromMimeType(String mimeType)
-
addExtensionMimeTypMapping
public void addExtensionMimeTypMapping(String extension, String mimeType)
-
clearMappings
public void clearMappings()
-
hasExtension
@Implementation protected boolean hasExtension(String extension)
-
hasMimeType
@Implementation protected boolean hasMimeType(String mimeType)
-
-