/** * Adds a directory input for this transform input. * * @param file the file of the directory input. * @return this instance of the builder. */ TransformInputBuilder addDirectoryInput(File file) { if (!file.exists()) { throw new IllegalArgumentException( "Specified directory input doesn't exist: " + file.getAbsolutePath()); } this.directoryInputs.add(new FileDirectoryInput(file)); return this; }