Watched files which are removed from the filesystem are no longer watched.
| Modifier and Type | Class and Description |
|---|---|
| public class | |
| public static interface | |
| private static class | FileMonitor.Holder
Canonical lazy loading of a singleton. |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private List | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public void | |
| public void | |
| public void | |
| protected abstract void | |
| protected void | finalize()
Overrides java. |
| public static FileMonitor | |
| protected void | |
| public synchronized void | |
| public void | |
| protected abstract void | |
| protected abstract void |
| FILE_ACCESSED | back to summary |
|---|---|
| public static final int FILE_ACCESSED | |
| FILE_ANY | back to summary |
|---|---|
| public static final int FILE_ANY | |
| FILE_ATTRIBUTES_CHANGED | back to summary |
|---|---|
| public static final int FILE_ATTRIBUTES_CHANGED | |
| FILE_CREATED | back to summary |
|---|---|
| public static final int FILE_CREATED | |
| FILE_DELETED | back to summary |
|---|---|
| public static final int FILE_DELETED | |
| FILE_MODIFIED | back to summary |
|---|---|
| public static final int FILE_MODIFIED | |
| FILE_NAME_CHANGED_NEW | back to summary |
|---|---|
| public static final int FILE_NAME_CHANGED_NEW | |
| FILE_NAME_CHANGED_OLD | back to summary |
|---|---|
| public static final int FILE_NAME_CHANGED_OLD | |
| FILE_RENAMED | back to summary |
|---|---|
| public static final int FILE_RENAMED | |
| FILE_SECURITY_CHANGED | back to summary |
|---|---|
| public static final int FILE_SECURITY_CHANGED | |
| FILE_SIZE_CHANGED | back to summary |
|---|---|
| public static final int FILE_SIZE_CHANGED | |
| listeners | back to summary |
|---|---|
| private List<E> listeners | |
| watched | back to summary |
|---|---|
| private Map<K, V> watched | |
| FileMonitor | back to summary |
|---|---|
| public FileMonitor() | |
| addFileListener | back to summary |
|---|---|
| public synchronized void addFileListener(FileMonitor. | |
| addWatch | back to summary |
|---|---|
| public void addWatch(File dir) throws IOException | |
| addWatch | back to summary |
|---|---|
| public void addWatch(File dir, int mask) throws IOException | |
| addWatch | back to summary |
|---|---|
| public void addWatch(File dir, int mask, boolean recursive) throws IOException | |
| dispose | back to summary |
|---|---|
| protected abstract void dispose() | |
| finalize | back to summary |
|---|---|
| protected void finalize() Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| getInstance | back to summary |
|---|---|
| public static FileMonitor getInstance() | |
| notify | back to summary |
|---|---|
| protected void notify(FileMonitor. | |
| removeFileListener | back to summary |
|---|---|
| public synchronized void removeFileListener(FileMonitor. | |
| removeWatch | back to summary |
|---|---|
| public void removeWatch(File file) | |
| unwatch | back to summary |
|---|---|
| protected abstract void unwatch(File file) | |
| watch | back to summary |
|---|---|
| protected abstract void watch(File file, int mask, boolean recursive) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private int |
| Modifier and Type | Method and Description |
|---|---|
| public File | |
| public int | |
| public String | toString()
Overrides java. |
| FileEvent | back to summary |
|---|---|
| public FileEvent(File file, int type) | |
| getFile | back to summary |
|---|---|
| public File getFile() | |
| getType | back to summary |
|---|---|
| public int getType() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a String representation of this EventObject.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| fileChanged | back to summary |
|---|---|
| public void fileChanged(FileMonitor. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FileMonitor |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| public static final FileMonitor INSTANCE | |
| Holder | back to summary |
|---|---|
| private Holder() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | watch(File file, int mask, boolean recursive)
Implements abstract com. |
| INotifyFileMonitor | back to summary |
|---|---|
| private INotifyFileMonitor() | |
| dispose | back to summary |
|---|---|
| protected void dispose() Implements abstract com. | |
| unwatch | back to summary |
|---|---|
| protected void unwatch(File file) Implements abstract com. | |
| watch | back to summary |
|---|---|
| protected void watch(File file, int mask, boolean recursive) Implements abstract com. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | watch(File file, int mask, boolean recursive)
Implements abstract com. |
| KQueueFileMonitor | back to summary |
|---|---|
| private KQueueFileMonitor() | |
| dispose | back to summary |
|---|---|
| protected void dispose() Implements abstract com. | |
| unwatch | back to summary |
|---|---|
| protected void unwatch(File file) Implements abstract com. | |
| watch | back to summary |
|---|---|
| protected void watch(File file, int mask, boolean recursive) Implements abstract com. | |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private Map | |
| private Map | |
| private W32API. | |
| private Thread |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| protected synchronized void | |
| private String | |
| private void | |
| protected synchronized void | |
| private FileMonitor. | |
| protected synchronized void | watch(File file, int eventMask, boolean recursive)
Implements abstract com. |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| fileMap | back to summary |
|---|---|
| private Map<K, V> fileMap | |
| handleMap | back to summary |
|---|---|
| private Map<K, V> handleMap | |
| port | back to summary |
|---|---|
| private W32API. | |
| watcher | back to summary |
|---|---|
| private Thread watcher | |
| W32FileMonitor | back to summary |
|---|---|
| private W32FileMonitor() | |
| convertMask | back to summary |
|---|---|
| private int convertMask(int mask) | |
| dispose | back to summary |
|---|---|
| protected synchronized void dispose() Implements abstract com. | |
| getSystemError | back to summary |
|---|---|
| private String getSystemError(int code) | |
| handleChanges | back to summary |
|---|---|
| private void handleChanges(FileMonitor. | |
| unwatch | back to summary |
|---|---|
| protected synchronized void unwatch(File file) Implements abstract com. | |
| waitForChange | back to summary |
|---|---|
| private FileMonitor. | |
| watch | back to summary |
|---|---|
| protected synchronized void watch(File file, int eventMask, boolean recursive) throws IOException Implements abstract com. | |
| Modifier and Type | Field and Description |
|---|---|
| public File | |
| public W32API. | |
| public Kernel32. | |
| public IntByReference | |
| public int | |
| public Kernel32. | |
| public boolean |
| Access | Constructor and Description |
|---|---|
| public |
| file | back to summary |
|---|---|
| public File file | |
| handle | back to summary |
|---|---|
| public W32API. | |
| info | back to summary |
|---|---|
| public Kernel32. | |
| infoLength | back to summary |
|---|---|
| public IntByReference infoLength | |
| notifyMask | back to summary |
|---|---|
| public int notifyMask | |
| overlapped | back to summary |
|---|---|
| public Kernel32. | |
| recursive | back to summary |
|---|---|
| public boolean recursive | |
| FileInfo | back to summary |
|---|---|
| public FileInfo(File f, W32API. | |