Lines Matching refs:file

3  * contributor license agreements.  See the NOTICE file distributed with

5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
76 * protected void handleFile(File file, int depth, Collection results) {
77 * // delete file and add to list of deleted
78 * file.delete();
79 * results.add(file);
119 * // Combine the directory and file filters using an OR condition
131 * express constructs like 'any file in directories named docs'.
206 * private void handleIsCancelled(File file, int depth, Collection results) {
229 * throw new CancelException(file, depth);
234 * protected void handleFile(File file, int depth, Collection results) throws IOException {
235 * // cancel if read-only file
236 * if (!file.canWrite()) {
237 * throw new CancelException(file, depth);
239 * results.add(file);
254 * The file filter to use to filter files and directories.
287 * Construct an instance with a directory and a file filter and an optional
388 * @param file the current file being processed
389 * @param depth the current file level (starting directory = 0)
393 protected final void checkIfCancelled(File file, int depth, Collection results) throws IOException {
394 if (handleIsCancelled(file, depth, results)) {
395 throw new CancelException(file, depth);
413 * private void handleIsCancelled(File file, int depth, Collection results) {
428 * @param file the file or directory being processed
435 File file, int depth, Collection results) throws IOException {
442 * The file being processed when the cancellation occurred can be
478 * Note that this functionality is in addition to the filtering by file filter.
508 * Overridable callback method invoked for each (non-directory) file.
512 * @param file the current file being processed
517 protected void handleFile(File file, int depth, Collection results) throws IOException {
571 /** The file being processed when the exception was thrown. */
572 private File file;
573 /** The file depth when the exception was thrown. */
578 * the file and depth when cancellation occurred.
580 * @param file the file when the operation was cancelled, may be null
583 public CancelException(File file, int depth) {
584 this("Operation Cancelled", file, depth);
589 * an appropriate message and the file and depth when
593 * @param file the file when the operation was cancelled
596 public CancelException(String message, File file, int depth) {
598 this.file = file;
603 * Return the file when the operation was cancelled.
605 * @return the file when the operation was cancelled
608 return file;