Fields Summary |
---|
public static final String | MMS_MESSAGE |
public static final String | MMS_GENERIC |
public static final String | MULTIPART_MIXED |
public static final String | MULTIPART_RELATED |
public static final String | TEXT_PLAIN |
public static final String | TEXT_HTML |
public static final String | TEXT_VCALENDAR |
public static final String | TEXT_VCARD |
public static final String | IMAGE_UNSPECIFIED |
public static final String | IMAGE_JPEG |
public static final String | IMAGE_JPG |
public static final String | IMAGE_GIF |
public static final String | IMAGE_WBMP |
public static final String | IMAGE_PNG |
public static final String | AUDIO_UNSPECIFIED |
public static final String | AUDIO_AAC |
public static final String | AUDIO_AMR |
public static final String | AUDIO_IMELODY |
public static final String | AUDIO_MID |
public static final String | AUDIO_MIDI |
public static final String | AUDIO_MP3 |
public static final String | AUDIO_MPEG3 |
public static final String | AUDIO_MPEG |
public static final String | AUDIO_MPG |
public static final String | AUDIO_MP4 |
public static final String | AUDIO_X_MID |
public static final String | AUDIO_X_MIDI |
public static final String | AUDIO_X_MP3 |
public static final String | AUDIO_X_MPEG3 |
public static final String | AUDIO_X_MPEG |
public static final String | AUDIO_X_MPG |
public static final String | AUDIO_3GPP |
public static final String | AUDIO_OGG |
public static final String | VIDEO_UNSPECIFIED |
public static final String | VIDEO_3GPP |
public static final String | VIDEO_3G2 |
public static final String | VIDEO_H263 |
public static final String | VIDEO_MP4 |
public static final String | APP_SMIL |
public static final String | APP_WAP_XHTML |
public static final String | APP_XHTML |
public static final String | APP_DRM_CONTENT |
public static final String | APP_DRM_MESSAGE |
private static final ArrayList | sSupportedContentTypes |
private static final ArrayList | sSupportedImageTypes |
private static final ArrayList | sSupportedAudioTypes |
private static final ArrayList | sSupportedVideoTypes |
Methods Summary |
---|
public static java.util.ArrayList | getAudioTypes()
return (ArrayList<String>) sSupportedAudioTypes.clone();
|
public static java.util.ArrayList | getImageTypes()
return (ArrayList<String>) sSupportedImageTypes.clone();
|
public static java.util.ArrayList | getSupportedTypes()
return (ArrayList<String>) sSupportedContentTypes.clone();
|
public static java.util.ArrayList | getVideoTypes()
return (ArrayList<String>) sSupportedVideoTypes.clone();
|
public static boolean | isAudioType(java.lang.String contentType)
return (null != contentType) && contentType.startsWith("audio/");
|
public static boolean | isDrmType(java.lang.String contentType)
return (null != contentType)
&& (contentType.equals(APP_DRM_CONTENT)
|| contentType.equals(APP_DRM_MESSAGE));
|
public static boolean | isImageType(java.lang.String contentType)
return (null != contentType) && contentType.startsWith("image/");
|
public static boolean | isSupportedAudioType(java.lang.String contentType)
return isAudioType(contentType) && isSupportedType(contentType);
|
public static boolean | isSupportedImageType(java.lang.String contentType)
return isImageType(contentType) && isSupportedType(contentType);
|
public static boolean | isSupportedType(java.lang.String contentType)
return (null != contentType) && sSupportedContentTypes.contains(contentType);
|
public static boolean | isSupportedVideoType(java.lang.String contentType)
return isVideoType(contentType) && isSupportedType(contentType);
|
public static boolean | isTextType(java.lang.String contentType)
return (null != contentType) && contentType.startsWith("text/");
|
public static boolean | isUnspecified(java.lang.String contentType)
return (null != contentType) && contentType.endsWith("*");
|
public static boolean | isVideoType(java.lang.String contentType)
return (null != contentType) && contentType.startsWith("video/");
|