/*
* Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012 -- 2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
- */
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
+*/
package eu.svjatoslav.meviz.htmlindexer;
+import eu.svjatoslav.meviz.htmlindexer.layouts.Layout;
import eu.svjatoslav.meviz.htmlindexer.layouts.MixedLayout;
-import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File;
import java.util.HashSet;
import java.util.zip.CRC32;
-public class Utils {
+import static javax.imageio.ImageIO.read;
- private static final String UTF_8 = "UTF-8";
+public class Utils {
private static File lastLoadedFile;
private static BufferedImage lastLoadedBufferedImage;
return lastLoadedBufferedImage;
System.out.println("Loading image: " + file.getPath());
- lastLoadedBufferedImage = ImageIO.read(file);
+ lastLoadedBufferedImage = read(file);
lastLoadedFile = file;
if (lastLoadedBufferedImage == null) {