Package net.rubygrapefruit.platform.file
Interface FileWatcher
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
AbstractFileEventFunctions.AbstractFileWatcher
public interface FileWatcher extends java.io.CloseableA handle for watching file system locations.
-
-
Field Summary
Fields Modifier and Type Field Description static FileWatcherEMPTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Stops watching and releases any native resources.
-
-
-
Field Detail
-
EMPTY
static final FileWatcher EMPTY
-
-
Method Detail
-
close
void close() throws java.io.IOExceptionStops watching and releases any native resources. No more calls to the associatedFileWatcherCallbackwill happen after this method returns.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-