Home | History | Annotate | Download | only in mms

Lines Matching defs:ContentType

22 public class ContentType {
158 private ContentType() {
161 public static boolean isSupportedType(String contentType) {
162 return (null != contentType) && sSupportedContentTypes.contains(contentType);
165 public static boolean isSupportedImageType(String contentType) {
166 return isImageType(contentType) && isSupportedType(contentType);
169 public static boolean isSupportedAudioType(String contentType) {
170 return isAudioType(contentType) && isSupportedType(contentType);
173 public static boolean isSupportedVideoType(String contentType) {
174 return isVideoType(contentType) && isSupportedType(contentType);
177 public static boolean isTextType(String contentType) {
178 return (null != contentType) && contentType.startsWith("text/");
181 public static boolean isImageType(String contentType) {
182 return (null != contentType) && contentType.startsWith("image/");
185 public static boolean isAudioType(String contentType) {
186 return (null != contentType) && contentType.startsWith("audio/");
189 public static boolean isVideoType(String contentType) {
190 return (null != contentType) && contentType.startsWith("video/");
193 public static boolean isDrmType(String contentType) {
194 return (null != contentType)
195 && (contentType.equals(APP_DRM_CONTENT)
196 || contentType.equals(APP_DRM_MESSAGE));
199 public static boolean isUnspecified(String contentType) {
200 return (null != contentType) && contentType.endsWith("*");