public class DLOpenerGoogleDriveMimeTypes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_RTF
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.APPLICATION_RTF |
static java.lang.String |
APPLICATION_VND_DOCX
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.APPLICATION_VND_DOCX |
static java.lang.String |
APPLICATION_VND_GOOGLE_APPS_DOCUMENT
The MIME type for Google Docs.
|
static java.lang.String |
APPLICATION_VND_GOOGLE_APPS_PRESENTATION
The MIME type for Google Slides.
|
static java.lang.String |
APPLICATION_VND_GOOGLE_APPS_SPREADSHEET
The MIME type for Google Spreadsheets.
|
static java.lang.String |
APPLICATION_VND_ODP
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.APPLICATION_VND_ODP |
static java.lang.String |
APPLICATION_VND_ODS
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.APPLICATION_VND_ODS |
static java.lang.String |
APPLICATION_VND_ODT
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.APPLICATION_VND_ODT |
static java.lang.String |
APPLICATION_VND_PPTX
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.APPLICATION_VND_PPTX |
static java.lang.String |
APPLICATION_VND_XSLX
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.APPLICATION_VND_XSLX |
static java.lang.String |
TEXT_TAB_SEPARATED_VALUES
Deprecated.
As of Mueller (7.2.x), replaced by
DLOpenerMimeTypes.TEXT_TAB_SEPARATED_VALUES |
| Constructor and Description |
|---|
DLOpenerGoogleDriveMimeTypes() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getGoogleDocsMimeType(java.lang.String mimeType)
Returns the Google Drive MIME type equivalent to the one received.
|
static java.lang.String |
getMimeTypeExtension(java.lang.String mimeType)
Returns the canonical file extension associated with the MIME type.
|
static boolean |
isGoogleMimeTypeSupported(java.lang.String mimeType)
Returns
true if a MIME type is supported. |
static boolean |
isMimeTypeSupported(java.lang.String mimeType)
Deprecated.
As of Mueller (7.2.x), replaced by
isGoogleMimeTypeSupported(String mimeType) |
@Deprecated public static final java.lang.String APPLICATION_RTF
DLOpenerMimeTypes.APPLICATION_RTF@Deprecated public static final java.lang.String APPLICATION_VND_DOCX
DLOpenerMimeTypes.APPLICATION_VND_DOCXpublic static final java.lang.String APPLICATION_VND_GOOGLE_APPS_DOCUMENT
public static final java.lang.String APPLICATION_VND_GOOGLE_APPS_PRESENTATION
public static final java.lang.String APPLICATION_VND_GOOGLE_APPS_SPREADSHEET
@Deprecated public static final java.lang.String APPLICATION_VND_ODP
DLOpenerMimeTypes.APPLICATION_VND_ODP@Deprecated public static final java.lang.String APPLICATION_VND_ODS
DLOpenerMimeTypes.APPLICATION_VND_ODS@Deprecated public static final java.lang.String APPLICATION_VND_ODT
DLOpenerMimeTypes.APPLICATION_VND_ODT@Deprecated public static final java.lang.String APPLICATION_VND_PPTX
DLOpenerMimeTypes.APPLICATION_VND_PPTX@Deprecated public static final java.lang.String APPLICATION_VND_XSLX
DLOpenerMimeTypes.APPLICATION_VND_XSLX@Deprecated public static final java.lang.String TEXT_TAB_SEPARATED_VALUES
DLOpenerMimeTypes.TEXT_TAB_SEPARATED_VALUESpublic static java.lang.String getGoogleDocsMimeType(java.lang.String mimeType)
This method returns a valid Google document type only for MIME types for
which isGoogleMimeTypeSupported(String) returns true. An
exception is thrown for any others.
mimeType - the MIME type to map to Google Drivepublic static java.lang.String getMimeTypeExtension(java.lang.String mimeType)
".docx".
The return value always includes a dot (.) as the extension's
first character.
Only MIME types for which the isGoogleMimeTypeSupported(String)
method returns true return an extension. Any empty string is
returned for any others.
mimeType - the MIME typepublic static boolean isGoogleMimeTypeSupported(java.lang.String mimeType)
true if a MIME type is supported.mimeType - the MIME typetrue if the MIME type is supported; false
otherwise@Deprecated public static boolean isMimeTypeSupported(java.lang.String mimeType)
isGoogleMimeTypeSupported(String mimeType)true if a MIME type is supported.mimeType - the MIME typetrue if the MIME type is supported; false
otherwise