(InputStream inputStream)
| 928 | /// |
| 929 | /// true if jpeg, false otherwise |
| 930 | public static boolean isJPEG(InputStream inputStream) throws IOException { |
| 931 | String type = Util.guessMimeType(inputStream); |
| 932 | return "image/jpeg".equals(type) || "image/jpg".equals(type); |
| 933 | } |
| 934 | |
| 935 | /// Very fast method to detect if the given inputStream is a PNG image |
| 936 | /// (according to its guessed mime type) |
no test coverage detected