Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WatchablePath

        public WatchablePath​(java.nio.file.Path file)
    • 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 interface java.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 interface java.nio.file.Watchable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object