Lines Matching full:contenttype
22 public class ContentType {
166 private ContentType() {
169 public static boolean isSupportedType(String contentType) {
170 return (null != contentType) && sSupportedContentTypes.contains(contentType);
173 public static boolean isSupportedImageType(String contentType) {
174 return isImageType(contentType) && isSupportedType(contentType);
177 public static boolean isSupportedAudioType(String contentType) {
178 return isAudioType(contentType) && isSupportedType(contentType);
181 public static boolean isSupportedVideoType(String contentType) {
182 return isVideoType(contentType) && isSupportedType(contentType);
185 public static boolean isTextType(String contentType) {
186 return (null != contentType) && contentType.startsWith("text/");
189 public static boolean isImageType(String contentType) {
190 return (null != contentType) && contentType.startsWith("image/");
193 public static boolean isAudioType(String contentType) {
194 return (null != contentType) && contentType.startsWith("audio/");
197 public static boolean isVideoType(String contentType) {
198 return (null != contentType) && contentType.startsWith("video/");
201 public static boolean isDrmType(String contentType) {
202 return (null != contentType)
203 && (contentType.equals(APP_DRM_CONTENT)
204 || contentType.equals(APP_DRM_MESSAGE));
207 public static boolean isUnspecified(String contentType) {
208 return (null != contentType) && contentType.endsWith("*");