public int shallOverwriteFile(File file) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        while (true) {
            try {
                sysOut.println(bundle.getString("overwrite_help"));
                sysOut.print(bundle.getString("overwrite_this_file") + " " + file.getCanonicalPath() + "? : [n] ");
                String input = br.readLine();
                if (input.equalsIgnoreCase("n") || input.equalsIgnoreCase("")) {
                    return Controller.OVERWRITE_ONCE_NO;
                } else if (input.equalsIgnoreCase("an")) {
                    return Controller.OVERWRITE_ALL_NO;
                } else if (input.equalsIgnoreCase("y")) {
                    return Controller.OVERWRITE_ONCE_YES;
                } else if (input.equalsIgnoreCase("ay")) {
                    return Controller.OVERWRITE_ALL_YES;
                }
            } catch (IOException ex) {
                displayError(bundle.getString("error_console_read"),
                        ex.getLocalizedMessage());
            }
        }
    }