com.jniwrapper.win32.io
Class FileSystemEvent
java.lang.Object
java.util.EventObject
com.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
Fields inherited from class java.util.EventObject |
source |
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 |
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
FileSystemEvent
public FileSystemEvent(java.lang.Object source,
int action,
FileInfo oldFileInfo,
FileInfo fileInfo)
FileSystemEvent
public FileSystemEvent(java.lang.Object source,
int action,
FileInfo fileInfo)
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()
- Overrides:
toString
in class java.util.EventObject