/*
* 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.metadata.fileTypes;
import java.util.ArrayList;
import java.util.List;
+import static eu.svjatoslav.meviz.htmlindexer.Utils.getBufferedImage;
+
public class Picture extends AbstractFile {
private static final long serialVersionUID = -4156533490858298387L;
try {
- final BufferedImage inputImage = Utils.getBufferedImage(inputFile);
+ final BufferedImage inputImage = getBufferedImage(inputFile);
final java.awt.Dimension sourceImageDimension = new java.awt.Dimension(
inputImage.getWidth(), inputImage.getHeight());
}
@Override
- public void updateFileMetainfo(final File parentDirectory) throws Exception {
- final BufferedImage image = Utils
- .getBufferedImage(getFile(parentDirectory));
+ public void updateFileMetadata(final File parentDirectory) throws Exception {
+ final BufferedImage image = getBufferedImage(getFile(parentDirectory));
dimensions = new Dimension(image.getWidth(), image.getHeight());
}