Example usage for com.google.common.net MediaType create

List of usage examples for com.google.common.net MediaType create

Introduction

In this page you can find the example usage for com.google.common.net MediaType create.

Prototype

public static MediaType create(String type, String subtype) 

Source Link

Document

Creates a new media type with the given type and subtype.

Usage

From source file:org.codice.ddf.catalog.content.plugin.video.VideoThumbnailPlugin.java

private boolean isVideo(final ContentItem contentItem) {
    final MimeType createdMimeType = contentItem.getMimeType();
    final MediaType createdMediaType = MediaType.create(createdMimeType.getPrimaryType(),
            createdMimeType.getSubType());
    return createdMediaType.is(MediaType.ANY_VIDEO_TYPE);
}