X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fhtmlindexer%2FUtils.java;h=a966f7ffb0fe34215814fd13446c1b08d790addf;hb=8b0fa37543a8ccd5e37d7e16f31b449f8f5440b7;hp=853b510d9082ca7b1ec049bdb4d94194328b1e87;hpb=3d29e476a202b7e6c05df21cf557ce909bddc076;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java index 853b510..a966f7f 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java @@ -1,6 +1,6 @@ /* * Meviz - Various tools collection to work with multimedia. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Copyright (C) 2012 -- 2018, 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 @@ -11,7 +11,6 @@ package eu.svjatoslav.meviz.htmlindexer; import eu.svjatoslav.meviz.htmlindexer.layouts.MixedLayout; -import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.File; @@ -20,9 +19,9 @@ import java.io.IOException; 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; @@ -39,7 +38,7 @@ public class Utils { return lastLoadedBufferedImage; System.out.println("Loading image: " + file.getPath()); - lastLoadedBufferedImage = ImageIO.read(file); + lastLoadedBufferedImage = read(file); lastLoadedFile = file; if (lastLoadedBufferedImage == null) {