Fixed aspect ratio of WEBM files
[meviz.git] / src / main / java / eu / svjatoslav / meviz / textsplitter / Main.java
index aaaecde..c955796 100755 (executable)
@@ -1,6 +1,6 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2017, 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
@@ -18,11 +18,11 @@ import java.io.*;
 
 public class Main implements Module {
 
-    CommandlineHandler commandlineHandler = new CommandlineHandler();
+    private final CommandlineHandler commandlineHandler = new CommandlineHandler();
 
-    TextSplittingOptions options;
+    private TextSplittingOptions options;
 
-    public boolean fileMatchesInputPattern(final File file) {
+    private boolean fileMatchesInputPattern(final File file) {
         final String fileName = file.getName().toLowerCase();
 
         for (final String inputPattern : options.fileInputPatterns)
@@ -62,7 +62,7 @@ public class Main implements Module {
         return new File(targetFilePath.toString());
     }
 
-    public void processDirectory(final File directory) {
+    private void processDirectory(final File directory) {
 
         for (final File subFile : directory.listFiles())
             if (subFile.isDirectory()) {
@@ -80,7 +80,7 @@ public class Main implements Module {
 
     }
 
-    public void processFile(final File file) throws IOException {
+    private void processFile(final File file) throws IOException {
         final File targetFile = getTargetFile(file);
 
         final BufferedReader bufferedReader = new BufferedReader(