Updated copyright message.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / Ogg2Wav.java
index 49b989b..cf6c090 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * 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
  * as published by the Free Software Foundation.
@@ -9,27 +9,30 @@
 
 package eu.svjatoslav.meviz.encoder.converters;
 
-import java.io.File;
-
 import eu.svjatoslav.meviz.encoder.EncodingOptions;
 
-public class Ogg2Wav implements Converter {
+import java.io.File;
+import java.util.List;
+
+public class Ogg2Wav extends AbstractConverter {
 
     @Override
-    public String getCommand(final File inputFile, final File targetFile, final EncodingOptions options) {
+    public String getCommand(final File inputFile, final File targetFile,
+                             final EncodingOptions options, String targetFormat) {
 
-        return "oggdec \"" + inputFile.getAbsolutePath() + "\" -o \"" + targetFile.getAbsolutePath() + "\"";
+        return "oggdec \"" + inputFile.getAbsolutePath() + "\" -o \""
+                + targetFile.getAbsolutePath() + "\"";
 
     }
 
     @Override
-    public String getSourceFileExtension() {
-        return "ogg";
+    public List<String> getSourceFileExtensions() {
+        return toList("ogg");
     }
 
     @Override
-    public String getTargetFileExtension() {
-        return "wav";
+    public List<String> getTargetFileExtensions() {
+        return toList("wav");
     }
 
     @Override