Skip navigation links
JNA API 4.5.1
com.sun.jna.platform

Class FileMonitor

  • Direct Known Subclasses:
    W32FileMonitor


    public abstract class FileMonitor
    extends java.lang.Object
    Provides notification of file system changes. Actual capabilities may vary slightly by platform.

    Watched files which are removed from the filesystem are no longer watched.

    Author:
    twall
    • Constructor Detail

      • FileMonitor

        public FileMonitor()
    • Method Detail

      • watch

        protected abstract void watch(java.io.File file,
                                      int mask,
                                      boolean recursive)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • unwatch

        protected abstract void unwatch(java.io.File file)
      • dispose

        public abstract void dispose()
      • addWatch

        public void addWatch(java.io.File dir)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addWatch

        public void addWatch(java.io.File dir,
                             int mask)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addWatch

        public void addWatch(java.io.File dir,
                             int mask,
                             boolean recursive)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • removeWatch

        public void removeWatch(java.io.File file)
      • finalize

        protected void finalize()
        Overrides:
        finalize in class java.lang.Object
      • getInstance

        public static FileMonitor getInstance()
JNA API 4.5.1

Copyright © 2007-2017 Timothy Wall. All Rights Reserved.