public final class MediaTypeUtils
extends java.lang.Object
SpeechToText service.SpeechToText| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getMediaTypeFromFile(java.io.File file)
Returns the media type for a given file.
|
static boolean |
isValidMediaType(java.lang.String mediaType)
Checks if the media type is supported by the service.
|
public static java.lang.String getMediaTypeFromFile(java.io.File file)
file - the file object for which media type needs to be providedpublic static boolean isValidMediaType(java.lang.String mediaType)
mediaType - Internet media type for the file