Refactored to remove code duplication.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / Jpeg2Png.java
diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Jpeg2Png.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Jpeg2Png.java
deleted file mode 100755 (executable)
index cb66bf5..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, 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.
- */
-
-package eu.svjatoslav.meviz.encoder.converters;
-
-import java.io.File;
-
-import eu.svjatoslav.meviz.encoder.EncodingOptions;
-
-public class Jpeg2Png implements Converter {
-
-    @Override
-    public String getCommand(final File inputFile, final File targetFile, final EncodingOptions options) {
-        return "convert \"" + inputFile.getAbsolutePath() + "\" \""
-        + targetFile.getAbsolutePath() + "\"";
-    }
-
-    @Override
-    public String getSourceFileExtension() {
-        return "jpeg";
-    }
-
-    @Override
-    public String getTargetFileExtension() {
-        return "png";
-    }
-
-    @Override
-    public boolean isTerminalMandatory() {
-        return false;
-    }
-
-}