public class WatchablePath
extends java.lang.Object
implements java.nio.file.Watchable
Constructor and Description |
---|
WatchablePath(java.nio.file.Path file) |
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getFile() |
java.nio.file.WatchKey |
register(java.nio.file.WatchService watcher,
java.nio.file.WatchEvent.Kind<?>... events) |
java.nio.file.WatchKey |
register(java.nio.file.WatchService watcher,
java.nio.file.WatchEvent.Kind<?>[] events,
java.nio.file.WatchEvent.Modifier... modifiers) |
java.lang.String |
toString() |
public java.nio.file.Path getFile()
public java.nio.file.WatchKey register(java.nio.file.WatchService watcher, java.nio.file.WatchEvent.Kind<?>[] events, java.nio.file.WatchEvent.Modifier... modifiers) throws java.io.IOException
register
in interface java.nio.file.Watchable
java.io.IOException
public final java.nio.file.WatchKey register(java.nio.file.WatchService watcher, java.nio.file.WatchEvent.Kind<?>... events) throws java.io.IOException
register
in interface java.nio.file.Watchable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object