Updated copyright and license.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / AbstractConverter.java
index 322566b..4fc07a7 100755 (executable)
@@ -1,11 +1,11 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, 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.encoder.converters;
 
@@ -21,9 +21,9 @@ public abstract class AbstractConverter {
     public abstract String getCommand(File inputFile, File targetFile,
                                       EncodingOptions options, String targetFormat);
 
-    public abstract List<String> getSourceFileExtensions();
+    protected abstract List<String> getSourceFileExtensions();
 
-    public abstract List<String> getTargetFileExtensions();
+    protected abstract List<String> getTargetFileExtensions();
 
     /**
      * For some reasons some encoders require terminal to run. Until this is
@@ -39,8 +39,8 @@ public abstract class AbstractConverter {
         return getTargetFileExtensions().contains(format);
     }
 
-    public List<String> toList(final String... strings) {
-        final ArrayList<String> result = new ArrayList<String>();
+    List<String> toList(final String... strings) {
+        final ArrayList<String> result = new ArrayList<>();
 
         Collections.addAll(result, strings);