19ee98103a9015fbabe813218915b2892b599ae16Wink Saville/* 29ee98103a9015fbabe813218915b2892b599ae16Wink Saville * Copyright (C) 2007-2008 Esmertec AG. 39ee98103a9015fbabe813218915b2892b599ae16Wink Saville * Copyright (C) 2007-2008 The Android Open Source Project 49ee98103a9015fbabe813218915b2892b599ae16Wink Saville * 59ee98103a9015fbabe813218915b2892b599ae16Wink Saville * Licensed under the Apache License, Version 2.0 (the "License"); 69ee98103a9015fbabe813218915b2892b599ae16Wink Saville * you may not use this file except in compliance with the License. 79ee98103a9015fbabe813218915b2892b599ae16Wink Saville * You may obtain a copy of the License at 89ee98103a9015fbabe813218915b2892b599ae16Wink Saville * 99ee98103a9015fbabe813218915b2892b599ae16Wink Saville * http://www.apache.org/licenses/LICENSE-2.0 109ee98103a9015fbabe813218915b2892b599ae16Wink Saville * 119ee98103a9015fbabe813218915b2892b599ae16Wink Saville * Unless required by applicable law or agreed to in writing, software 129ee98103a9015fbabe813218915b2892b599ae16Wink Saville * distributed under the License is distributed on an "AS IS" BASIS, 139ee98103a9015fbabe813218915b2892b599ae16Wink Saville * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 149ee98103a9015fbabe813218915b2892b599ae16Wink Saville * See the License for the specific language governing permissions and 159ee98103a9015fbabe813218915b2892b599ae16Wink Saville * limitations under the License. 169ee98103a9015fbabe813218915b2892b599ae16Wink Saville */ 179ee98103a9015fbabe813218915b2892b599ae16Wink Saville 189ee98103a9015fbabe813218915b2892b599ae16Wink Savillepackage com.google.android.mms; 199ee98103a9015fbabe813218915b2892b599ae16Wink Saville 209ee98103a9015fbabe813218915b2892b599ae16Wink Savilleimport java.util.ArrayList; 219ee98103a9015fbabe813218915b2892b599ae16Wink Saville 229ee98103a9015fbabe813218915b2892b599ae16Wink Savillepublic class ContentType { 239ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String MMS_MESSAGE = "application/vnd.wap.mms-message"; 249ee98103a9015fbabe813218915b2892b599ae16Wink Saville // The phony content type for generic PDUs (e.g. ReadOrig.ind, 259ee98103a9015fbabe813218915b2892b599ae16Wink Saville // Notification.ind, Delivery.ind). 269ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String MMS_GENERIC = "application/vnd.wap.mms-generic"; 279ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String MULTIPART_MIXED = "application/vnd.wap.multipart.mixed"; 289ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String MULTIPART_RELATED = "application/vnd.wap.multipart.related"; 299ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String MULTIPART_ALTERNATIVE = "application/vnd.wap.multipart.alternative"; 309ee98103a9015fbabe813218915b2892b599ae16Wink Saville 319ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String TEXT_PLAIN = "text/plain"; 329ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String TEXT_HTML = "text/html"; 339ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String TEXT_VCALENDAR = "text/x-vCalendar"; 349ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String TEXT_VCARD = "text/x-vCard"; 359ee98103a9015fbabe813218915b2892b599ae16Wink Saville 369ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String IMAGE_UNSPECIFIED = "image/*"; 379ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String IMAGE_JPEG = "image/jpeg"; 389ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String IMAGE_JPG = "image/jpg"; 399ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String IMAGE_GIF = "image/gif"; 409ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String IMAGE_WBMP = "image/vnd.wap.wbmp"; 419ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String IMAGE_PNG = "image/png"; 429ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String IMAGE_X_MS_BMP = "image/x-ms-bmp"; 439ee98103a9015fbabe813218915b2892b599ae16Wink Saville 449ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_UNSPECIFIED = "audio/*"; 459ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_AAC = "audio/aac"; 469ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_AMR = "audio/amr"; 479ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_IMELODY = "audio/imelody"; 489ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_MID = "audio/mid"; 499ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_MIDI = "audio/midi"; 509ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_MP3 = "audio/mp3"; 519ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_MPEG3 = "audio/mpeg3"; 529ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_MPEG = "audio/mpeg"; 539ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_MPG = "audio/mpg"; 549ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_MP4 = "audio/mp4"; 559ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_X_MID = "audio/x-mid"; 569ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_X_MIDI = "audio/x-midi"; 579ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_X_MP3 = "audio/x-mp3"; 589ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_X_MPEG3 = "audio/x-mpeg3"; 599ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_X_MPEG = "audio/x-mpeg"; 609ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_X_MPG = "audio/x-mpg"; 619ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_3GPP = "audio/3gpp"; 629ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_X_WAV = "audio/x-wav"; 639ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String AUDIO_OGG = "application/ogg"; 649ee98103a9015fbabe813218915b2892b599ae16Wink Saville 659ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String VIDEO_UNSPECIFIED = "video/*"; 669ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String VIDEO_3GPP = "video/3gpp"; 679ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String VIDEO_3G2 = "video/3gpp2"; 689ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String VIDEO_H263 = "video/h263"; 699ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String VIDEO_MP4 = "video/mp4"; 709ee98103a9015fbabe813218915b2892b599ae16Wink Saville 719ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String APP_SMIL = "application/smil"; 729ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String APP_WAP_XHTML = "application/vnd.wap.xhtml+xml"; 739ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String APP_XHTML = "application/xhtml+xml"; 749ee98103a9015fbabe813218915b2892b599ae16Wink Saville 759ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String APP_DRM_CONTENT = "application/vnd.oma.drm.content"; 769ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static final String APP_DRM_MESSAGE = "application/vnd.oma.drm.message"; 779ee98103a9015fbabe813218915b2892b599ae16Wink Saville 789ee98103a9015fbabe813218915b2892b599ae16Wink Saville private static final ArrayList<String> sSupportedContentTypes = new ArrayList<String>(); 799ee98103a9015fbabe813218915b2892b599ae16Wink Saville private static final ArrayList<String> sSupportedImageTypes = new ArrayList<String>(); 809ee98103a9015fbabe813218915b2892b599ae16Wink Saville private static final ArrayList<String> sSupportedAudioTypes = new ArrayList<String>(); 819ee98103a9015fbabe813218915b2892b599ae16Wink Saville private static final ArrayList<String> sSupportedVideoTypes = new ArrayList<String>(); 829ee98103a9015fbabe813218915b2892b599ae16Wink Saville 839ee98103a9015fbabe813218915b2892b599ae16Wink Saville static { 849ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(TEXT_PLAIN); 859ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(TEXT_HTML); 869ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(TEXT_VCALENDAR); 879ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(TEXT_VCARD); 889ee98103a9015fbabe813218915b2892b599ae16Wink Saville 899ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(IMAGE_JPEG); 909ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(IMAGE_GIF); 919ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(IMAGE_WBMP); 929ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(IMAGE_PNG); 939ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(IMAGE_JPG); 949ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(IMAGE_X_MS_BMP); 959ee98103a9015fbabe813218915b2892b599ae16Wink Saville //supportedContentTypes.add(IMAGE_SVG); not yet supported. 969ee98103a9015fbabe813218915b2892b599ae16Wink Saville 979ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_AAC); 989ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_AMR); 999ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_IMELODY); 1009ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_MID); 1019ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_MIDI); 1029ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_MP3); 103b3f94db6cf2b177c69b21a562779e5af27eec0b4David Magno sSupportedContentTypes.add(AUDIO_MP4); 1049ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_MPEG3); 1059ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_MPEG); 1069ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_MPG); 1079ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_X_MID); 1089ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_X_MIDI); 1099ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_X_MP3); 1109ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_X_MPEG3); 1119ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_X_MPEG); 1129ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_X_MPG); 1139ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_X_WAV); 1149ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_3GPP); 1159ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(AUDIO_OGG); 1169ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1179ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(VIDEO_3GPP); 1189ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(VIDEO_3G2); 1199ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(VIDEO_H263); 1209ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(VIDEO_MP4); 1219ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1229ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(APP_SMIL); 1239ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(APP_WAP_XHTML); 1249ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(APP_XHTML); 1259ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1269ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(APP_DRM_CONTENT); 1279ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedContentTypes.add(APP_DRM_MESSAGE); 1289ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1299ee98103a9015fbabe813218915b2892b599ae16Wink Saville // add supported image types 1309ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedImageTypes.add(IMAGE_JPEG); 1319ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedImageTypes.add(IMAGE_GIF); 1329ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedImageTypes.add(IMAGE_WBMP); 1339ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedImageTypes.add(IMAGE_PNG); 1349ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedImageTypes.add(IMAGE_JPG); 1359ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedImageTypes.add(IMAGE_X_MS_BMP); 1369ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1379ee98103a9015fbabe813218915b2892b599ae16Wink Saville // add supported audio types 1389ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_AAC); 1399ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_AMR); 1409ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_IMELODY); 1419ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_MID); 1429ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_MIDI); 1439ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_MP3); 1449ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_MPEG3); 1459ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_MPEG); 1469ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_MPG); 1479ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_MP4); 1489ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_X_MID); 1499ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_X_MIDI); 1509ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_X_MP3); 1519ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_X_MPEG3); 1529ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_X_MPEG); 1539ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_X_MPG); 1549ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_X_WAV); 1559ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_3GPP); 1569ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedAudioTypes.add(AUDIO_OGG); 1579ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1589ee98103a9015fbabe813218915b2892b599ae16Wink Saville // add supported video types 1599ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedVideoTypes.add(VIDEO_3GPP); 1609ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedVideoTypes.add(VIDEO_3G2); 1619ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedVideoTypes.add(VIDEO_H263); 1629ee98103a9015fbabe813218915b2892b599ae16Wink Saville sSupportedVideoTypes.add(VIDEO_MP4); 1639ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1649ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1659ee98103a9015fbabe813218915b2892b599ae16Wink Saville // This class should never be instantiated. 1669ee98103a9015fbabe813218915b2892b599ae16Wink Saville private ContentType() { 1679ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1689ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1699ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isSupportedType(String contentType) { 1709ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (null != contentType) && sSupportedContentTypes.contains(contentType); 1719ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1729ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1739ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isSupportedImageType(String contentType) { 1749ee98103a9015fbabe813218915b2892b599ae16Wink Saville return isImageType(contentType) && isSupportedType(contentType); 1759ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1769ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1779ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isSupportedAudioType(String contentType) { 1789ee98103a9015fbabe813218915b2892b599ae16Wink Saville return isAudioType(contentType) && isSupportedType(contentType); 1799ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1809ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1819ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isSupportedVideoType(String contentType) { 1829ee98103a9015fbabe813218915b2892b599ae16Wink Saville return isVideoType(contentType) && isSupportedType(contentType); 1839ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1849ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1859ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isTextType(String contentType) { 1869ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (null != contentType) && contentType.startsWith("text/"); 1879ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1889ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1899ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isImageType(String contentType) { 1909ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (null != contentType) && contentType.startsWith("image/"); 1919ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1929ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1939ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isAudioType(String contentType) { 1949ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (null != contentType) && contentType.startsWith("audio/"); 1959ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 1969ee98103a9015fbabe813218915b2892b599ae16Wink Saville 1979ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isVideoType(String contentType) { 1989ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (null != contentType) && contentType.startsWith("video/"); 1999ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 2009ee98103a9015fbabe813218915b2892b599ae16Wink Saville 2019ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isDrmType(String contentType) { 2029ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (null != contentType) 2039ee98103a9015fbabe813218915b2892b599ae16Wink Saville && (contentType.equals(APP_DRM_CONTENT) 2049ee98103a9015fbabe813218915b2892b599ae16Wink Saville || contentType.equals(APP_DRM_MESSAGE)); 2059ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 2069ee98103a9015fbabe813218915b2892b599ae16Wink Saville 2079ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static boolean isUnspecified(String contentType) { 2089ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (null != contentType) && contentType.endsWith("*"); 2099ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 2109ee98103a9015fbabe813218915b2892b599ae16Wink Saville 2119ee98103a9015fbabe813218915b2892b599ae16Wink Saville @SuppressWarnings("unchecked") 2129ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static ArrayList<String> getImageTypes() { 2139ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (ArrayList<String>) sSupportedImageTypes.clone(); 2149ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 2159ee98103a9015fbabe813218915b2892b599ae16Wink Saville 2169ee98103a9015fbabe813218915b2892b599ae16Wink Saville @SuppressWarnings("unchecked") 2179ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static ArrayList<String> getAudioTypes() { 2189ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (ArrayList<String>) sSupportedAudioTypes.clone(); 2199ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 2209ee98103a9015fbabe813218915b2892b599ae16Wink Saville 2219ee98103a9015fbabe813218915b2892b599ae16Wink Saville @SuppressWarnings("unchecked") 2229ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static ArrayList<String> getVideoTypes() { 2239ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (ArrayList<String>) sSupportedVideoTypes.clone(); 2249ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 2259ee98103a9015fbabe813218915b2892b599ae16Wink Saville 2269ee98103a9015fbabe813218915b2892b599ae16Wink Saville @SuppressWarnings("unchecked") 2279ee98103a9015fbabe813218915b2892b599ae16Wink Saville public static ArrayList<String> getSupportedTypes() { 2289ee98103a9015fbabe813218915b2892b599ae16Wink Saville return (ArrayList<String>) sSupportedContentTypes.clone(); 2299ee98103a9015fbabe813218915b2892b599ae16Wink Saville } 2309ee98103a9015fbabe813218915b2892b599ae16Wink Saville} 231