Class PackScreen.PackDirectoryWatcher

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    PackScreen

    static class PackScreen.PackDirectoryWatcher
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Field Detail

      • watcher

        private final java.nio.file.WatchService watcher
      • packPath

        private final java.nio.file.Path packPath
    • Constructor Detail

      • PackDirectoryWatcher

        public PackDirectoryWatcher​(java.io.File p_i242061_1_)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • watchDir

        private void watchDir​(java.nio.file.Path p_243404_1_)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • pollForChanges

        public boolean pollForChanges()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException