com.jniwrapper.win32.io
Class FileSystemEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.jniwrapper.win32.io.FileSystemEvent
All Implemented Interfaces:
java.io.Serializable

public class FileSystemEvent
extends java.util.EventObject

This class provides information about an event occurred in the file system.

See Also:
FileSystemWatcher, Serialized Form

Field Summary
static int FILE_ADDED
           
static int FILE_MODIFIED
           
static int FILE_REMOVED
           
static int FILE_RENAMED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FileSystemEvent(java.lang.Object source, int action, FileInfo fileInfo)
           
FileSystemEvent(java.lang.Object source, int action, FileInfo oldFileInfo, FileInfo fileInfo)
           
 
Method Summary
 int getAction()
           
 FileInfo getFileInfo()
           
 FileInfo getOldFileInfo()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILE_ADDED

public static final int FILE_ADDED
See Also:
Constant Field Values

FILE_REMOVED

public static final int FILE_REMOVED
See Also:
Constant Field Values

FILE_MODIFIED

public static final int FILE_MODIFIED
See Also:
Constant Field Values

FILE_RENAMED

public static final int FILE_RENAMED
See Also:
Constant Field Values
Constructor Detail

FileSystemEvent

public FileSystemEvent(java.lang.Object source,
                       int action,
                       FileInfo oldFileInfo,
                       FileInfo fileInfo)

FileSystemEvent

public FileSystemEvent(java.lang.Object source,
                       int action,
                       FileInfo fileInfo)
Method Detail

getAction

public int getAction()
Returns:
action type occurred in the file system.

getOldFileInfo

public FileInfo getOldFileInfo()
Returns:
previous file information of the last modified file.

getFileInfo

public FileInfo getFileInfo()
Returns:
file information of the last created/modified/deleted file.

toString

public java.lang.String toString()