/*
- * 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.
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
*/
+
package eu.svjatoslav.meviz.replace;
import eu.svjatoslav.meviz.Module;
public class Main implements Module {
- CommandlineHandler commandlineHandler = new CommandlineHandler();
+ private final CommandlineHandler commandlineHandler = new CommandlineHandler();
- CommandlineOptions options;
+ private CommandlineOptions options;
@Override
public String getDescription() {
- return "Replace one string to another string in all occurrances and all files recursively.";
+ return "Replace one string to another string in all occurrences and all files recursively.";
}
@Override
return "replace";
}
- public void processDirectory(final File directory) {
+ private void processDirectory(final File directory) {
for (final File file : directory.listFiles())
if (file.isDirectory()) {
}
- public void processFile(final File file) throws IOException {
+ private void processFile(final File file) throws IOException {
final FileReader fileReader = new FileReader(file);
final BufferedReader bufferedReader = new BufferedReader(fileReader);