|
36 | 36 | * <p> |
37 | 37 | * The following sections describe: |
38 | 38 | * <ul> |
39 | | - * <li><a href="#example">1. Example Implementation</a> - example |
| 39 | + * <li><a href="#DirectoryWalker_example">1. Example Implementation</a> - example |
40 | 40 | * <code>FileCleaner</code> implementation.</li> |
41 | | - * <li><a href="#filter">2. Filter Example</a> - using |
| 41 | + * <li><a href="#DirectoryWalker_filter">2. Filter Example</a> - using |
42 | 42 | * {@link FileFilter}(s) with <code>DirectoryWalker</code>.</li> |
43 | | - * <li><a href="#cancel">3. Cancellation</a> - how to implement cancellation |
| 43 | + * <li><a href="#DirectoryWalker_cancel">3. Cancellation</a> - how to implement cancellation |
44 | 44 | * behaviour.</li> |
45 | 45 | * </ul> |
46 | 46 | * |
47 | | - * <a name="example"></a> |
| 47 | + * <a id="DirectoryWalker_example"></a> |
48 | 48 | * <h3>1. Example Implementation</h3> |
49 | 49 | * |
50 | 50 | * There are many possible extensions, for example, to delete all |
|
81 | 81 | * } |
82 | 82 | * </pre> |
83 | 83 | * |
84 | | - * <a name="filter"></a> |
| 84 | + * <a id="DirectoryWalker_filter"></a> |
85 | 85 | * <h3>2. Filter Example</h3> |
86 | 86 | * |
87 | 87 | * Choosing which directories and files to process can be a key aspect |
|
148 | 148 | * This is much simpler than the previous example, and is why it is the preferred |
149 | 149 | * option for filtering. |
150 | 150 | * |
151 | | - * <a name="cancel"></a> |
| 151 | + * <a id="DirectoryWalker_cancel"></a> |
152 | 152 | * <h3>3. Cancellation</h3> |
153 | 153 | * |
154 | 154 | * The DirectoryWalker contains some of the logic required for cancel processing. |
|
172 | 172 | * <p> |
173 | 173 | * Two possible scenarios are envisaged for cancellation: |
174 | 174 | * <ul> |
175 | | - * <li><a href="#external">3.1 External / Multi-threaded</a> - cancellation being |
| 175 | + * <li><a href="#DirectoryWalker_external">3.1 External / Multi-threaded</a> - cancellation being |
176 | 176 | * decided/initiated by an external process.</li> |
177 | | - * <li><a href="#internal">3.2 Internal</a> - cancellation being decided/initiated |
| 177 | + * <li><a href="#DirectoryWalker_internal">3.2 Internal</a> - cancellation being decided/initiated |
178 | 178 | * from within a DirectoryWalker implementation.</li> |
179 | 179 | * </ul> |
180 | 180 | * <p> |
181 | 181 | * The following sections provide example implementations for these two different |
182 | 182 | * scenarios. |
183 | 183 | * |
184 | | - * <a name="external"></a> |
| 184 | + * <a id="DirectoryWalker_external"></a> |
185 | 185 | * <h4>3.1 External / Multi-threaded</h4> |
186 | 186 | * |
187 | 187 | * This example provides a public <code>cancel()</code> method that can be |
|
213 | 213 | * } |
214 | 214 | * </pre> |
215 | 215 | * |
216 | | - * <a name="internal"></a> |
| 216 | + * <a id="DirectoryWalker_internal"></a> |
217 | 217 | * <h4>3.2 Internal</h4> |
218 | 218 | * |
219 | 219 | * This shows an example of how internal cancellation processing could be implemented. |
|
0 commit comments