Class MimeTypeUtil
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.utils.MimeTypeUtil
public class MimeTypeUtil extends Object
- Author:
- Madhav Krishna
-
Method Summary
Modifier and Type Method Description static StringfindMediaTypeForFile(String absluteFilePath)Detects the media type for file.static StringgetBinaryFileExtension(String mediaType)Returns the extension of the file if that media type belongs to binary file.static StringgetFileExtensionFromMediaType(String mediaType)Returns the file extension based on the media type.
-
Method Details
-
getFileExtensionFromMediaType
Returns the file extension based on the media type.- Parameters:
mediaType-- Returns:
-
getBinaryFileExtension
Returns the extension of the file if that media type belongs to binary file.- Parameters:
mediaType-- Returns:
-
findMediaTypeForFile
Detects the media type for file.- Parameters:
absluteFilePath-- Returns:
-