Home | History | Annotate | Download | only in mms

Lines Matching refs:ContentType

22 public class ContentType {
159 private ContentType() {
162 public static boolean isSupportedType(String contentType) {
163 return (null != contentType) && sSupportedContentTypes.contains(contentType);
166 public static boolean isSupportedImageType(String contentType) {
167 return isImageType(contentType) && isSupportedType(contentType);
170 public static boolean isSupportedAudioType(String contentType) {
171 return isAudioType(contentType) && isSupportedType(contentType);
174 public static boolean isSupportedVideoType(String contentType) {
175 return isVideoType(contentType) && isSupportedType(contentType);
178 public static boolean isTextType(String contentType) {
179 return (null != contentType) && contentType.startsWith("text/");
182 public static boolean isImageType(String contentType) {
183 return (null != contentType) && contentType.startsWith("image/");
186 public static boolean isAudioType(String contentType) {
187 return (null != contentType) && contentType.startsWith("audio/");
190 public static boolean isVideoType(String contentType) {
191 return (null != contentType) && contentType.startsWith("video/");
194 public static boolean isDrmType(String contentType) {
195 return (null != contentType)
196 && (contentType.equals(APP_DRM_CONTENT)
197 || contentType.equals(APP_DRM_MESSAGE));
200 public static boolean isUnspecified(String contentType) {
201 return (null != contentType) && contentType.endsWith("*");