Example usage for org.springframework.util MimeTypeUtils IMAGE_JPEG

List of usage examples for org.springframework.util MimeTypeUtils IMAGE_JPEG

Introduction

In this page you can find the example usage for org.springframework.util MimeTypeUtils IMAGE_JPEG.

Prototype

MimeType IMAGE_JPEG

To view the source code for org.springframework.util MimeTypeUtils IMAGE_JPEG.

Click Source Link

Document

Public constant mime type for image/jpeg .

Usage

From source file:net.pkhsolutions.pecsapp.boundary.PictureServiceBean.java

@Override
public boolean isSupportedMimeType(@NotNull MimeType mimeType) {
    return mimeType.equals(MimeTypeUtils.IMAGE_JPEG) || mimeType.equals(MimeTypeUtils.IMAGE_PNG)
            || mimeType.equals(MimeTypeUtils.IMAGE_GIF);
}