Here you can find the source of isRotationSupported(String mimeType)
public static boolean isRotationSupported(String mimeType)
//package com.java2s; public class Main { public static boolean isRotationSupported(String mimeType) { if (mimeType == null) return false; mimeType = mimeType.toLowerCase(); return mimeType.equals("image/jpeg"); }// w w w . j a v a2 s. c om }