| java.lang.Object org.netbeans.modules.project.ant.FileChangeSupport
FileChangeSupport | final public class FileChangeSupport (Code) | | Utility class to notify clients of changes in the existence or timestamp
of a named file or directory.
Unlike the Filesystems API, permits you to listen to a file which does not
yet exist, or continue listening to it after it is deleted and recreated, etc.
author: Jesse Glick See Also: "Blockers: #44213, #44628, #42147, etc." See Also: "#33162: hierarchical listeners" |
addListener | public void addListener(FileChangeSupportListener listener, File path)(Code) | | Add a listener to changes in a given path.
Can only add a given listener x path pair once.
However a listener can listen to any number of paths.
Note that listeners are always held weakly - if the listener is collected,
it is quietly removed.
|
|
|