You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* FileAlterationObserver represents the state of files below a root directory, checking the file system and notifying listeners of create, change or delete
39
+
* Represents the state of files below a root directory, checking the file system and notifying listeners of create, change or delete
40
40
* events.
41
41
* <p>
42
42
* To use this implementation:
43
43
* </p>
44
-
* <ul>
44
+
* <ol>
45
45
* <li>Create {@link FileAlterationListener} implementation(s) that process the file/directory create, change and delete events</li>
46
46
* <li>Register the listener(s) with a {@link FileAlterationObserver} for the appropriate directory.</li>
47
47
* <li>Either register the observer(s) with a {@link FileAlterationMonitor} or run manually.</li>
48
-
* </ul>
49
-
* <h2>Basic Usage</h2> Create a {@link FileAlterationObserver} for the directory and register the listeners:
48
+
* </ol>
49
+
* <h2>Observing a Directory</h2> Create a {@link FileAlterationObserver} for the directory and register the listeners:
50
50
*
51
51
* <pre>
52
52
* File directory = new File(FileUtils.current(), "src");
@@ -110,15 +110,15 @@
110
110
* observer.addListener(...);
111
111
* </pre>
112
112
*
113
-
* <h2>FileEntry</h2>
113
+
* <h2>Filtering File Entries</h2>
114
114
* <p>
115
115
* {@link FileEntry} represents the state of a file or directory, capturing {@link File} attributes at a point in time. Custom implementations of
116
116
* {@link FileEntry} can be used to capture additional properties that the basic implementation does not support. The {@link FileEntry#refresh(File)} method is
117
117
* used to determine if a file or directory has changed since the last check and stores the current state of the {@link File}'s properties.
118
118
* </p>
119
119
* <h2>Deprecating Serialization</h2>
120
120
* <p>
121
-
* <em>Serialization is deprecated and will be removed in 3.0.</em>
121
+
* <em>Serialization is deprecated and will be removed in 3.0. Consider using a serialization proxy.</em>
122
122
* </p>
123
123
*
124
124
* @see FileAlterationListener
@@ -135,7 +135,9 @@ public class FileAlterationObserver implements Serializable {
0 commit comments