/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(final File file, final int depth, final Collection<T> results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }
/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(File file, int depth, Collection results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }
/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(final File file, final int depth, final Collection<T> results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }
/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(File file, int depth, Collection<T> results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }
/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(File file, int depth, Collection results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }
/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(File file, int depth, Collection results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }
/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(File file, int depth, Collection<T> results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }
/** * Checks whether the walk has been cancelled by calling {@link #handleIsCancelled}, * throwing a <code>CancelException</code> if it has. * <p> * Writers of subclasses should not normally call this method as it is called * automatically by the walk of the tree. However, sometimes a single method, * typically {@link #handleFile}, may take a long time to run. In that case, * you may wish to check for cancellation by calling this method. * * @param file the current file being processed * @param depth the current file level (starting directory = 0) * @param results the collection of result objects, may be updated * @throws IOException if an I/O Error occurs */ protected final void checkIfCancelled(final File file, final int depth, final Collection<T> results) throws IOException { if (handleIsCancelled(file, depth, results)) { throw new CancelException(file, depth); } }