diff -r f3b4caf1d05d -r 5019e3e93a4e java/copy-image-resizer/src/cz/frantovo/copyImageResizer/cli/CLIOptions.java --- a/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/cli/CLIOptions.java Sun Nov 16 21:59:13 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,91 +0,0 @@ -/** - * copy-image-resizer - * Copyright © 2014 František Kučera (frantovo.cz) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package cz.frantovo.copyImageResizer.cli; - -import java.io.File; -import java.util.ArrayList; -import java.util.Collection; - -/** - * - * @author Ing. František Kučera (frantovo.cz) - */ -public class CLIOptions { - - /** - * Source directory - */ - private File input; - /** - * Output directory - */ - private File output; - /** - * Image resolutions to create - */ - private final Collection sizes = new ArrayList<>(); - - public File getSourceDir() { - return input; - } - - public void setInput(File input) { - this.input = input; - } - - public File getDestinationDir() { - return output; - } - - public void setOutput(File output) { - this.output = output; - } - - public Collection getSizes() { - return sizes; - } - - public void addSize(SizeSpecification size) { - sizes.add(size); - } - - public static class SizeSpecification { - - private final int width; - private final int height; - private final String directory; - - public SizeSpecification(int width, int height, String directory) { - this.width = width; - this.height = height; - this.directory = directory; - } - - public int getWidth() { - return width; - } - - public int getHeight() { - return height; - } - - public String getDirectory() { - return directory; - } - } -}