Class MimeTypeUtil
- java.lang.Object
-
- org.uitnet.testing.smartfwk.ui.core.utils.MimeTypeUtil
-
public class MimeTypeUtil extends Object
- Author:
- Madhav Krishna
-
-
Method Summary
All Methods Static Methods Concrete Methods 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 Detail
-
getFileExtensionFromMediaType
public static String getFileExtensionFromMediaType(String mediaType)
Returns the file extension based on the media type.- Parameters:
mediaType-- Returns:
-
getBinaryFileExtension
public static String getBinaryFileExtension(String mediaType)
Returns the extension of the file if that media type belongs to binary file.- Parameters:
mediaType-- Returns:
-
-