Package io.methvin.watchservice
Class WatchablePath
- java.lang.Object
-
- io.methvin.watchservice.WatchablePath
-
- All Implemented Interfaces:
java.nio.file.Watchable
public class WatchablePath extends java.lang.Object implements java.nio.file.Watchable
-
-
Constructor Summary
Constructors Constructor Description WatchablePath(java.nio.file.Path file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getFile
public java.nio.file.Path getFile()
-
register
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
- Specified by:
register
in interfacejava.nio.file.Watchable
- Throws:
java.io.IOException
-
register
public final java.nio.file.WatchKey register(java.nio.file.WatchService watcher, java.nio.file.WatchEvent.Kind<?>... events) throws java.io.IOException
- Specified by:
register
in interfacejava.nio.file.Watchable
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-