Module 
Package org.xnio

Class FileChangeEvent


  • public class FileChangeEvent
    extends java.lang.Object
    The event object that is fired when a file system change is detected.
    Author:
    Stuart Douglas
    See Also:
    FileSystemWatcher
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FileChangeEvent.Type
      Watched file event types.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getFile()
      Get the file which was being watched.
      FileChangeEvent.Type getType()
      Get the type of event.
      • Methods inherited from class java.lang.Object

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

      • FileChangeEvent

        public FileChangeEvent​(java.io.File file,
                               FileChangeEvent.Type type)
        Construct a new instance.
        Parameters:
        file - the file which is being watched
        type - the type of event that was encountered
    • Method Detail

      • getFile

        public java.io.File getFile()
        Get the file which was being watched.
        Returns:
        the file which was being watched