FileSystemEvent Class
- public class FileSystemEvent
extends ChangeEvent
This class represents an event on a file or directory in the file system.
The getSource() method will return a URI representing the file/folder that is
the source of the event.
-
Hierarchy
-
Object
EventObject
ChangeEvent
FileSystemEvent
-
All Implemented Interfaces
-
Serializable
public static final int |
-
FILE_CHANGED
- Signifies the file's content was changed, or the modification date was changed.
|
public static final int |
-
FILE_DELETED
- Signifies the file has been deleted from the system.
|
public static final int |
-
FILE_NEW
- Signifies the file is new.
|
public static final int |
-
FILE_WRITABLE_CHANGED
- Signifies the file's writable status was changed.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_CHANGED
public static final int FILE_CHANGED
- Signifies the file's content was changed, or the modification date was changed.
FILE_DELETED
public static final int FILE_DELETED
- Signifies the file has been deleted from the system.
FILE_NEW
public static final int FILE_NEW
- Signifies the file is new.
FILE_WRITABLE_CHANGED
public static final int FILE_WRITABLE_CHANGED
- Signifies the file's writable status was changed.
FileSystemEvent
public FileSystemEvent(URI
target,
int changeType,
Object
state,
long ts)
getChangeType() Method
public int getChangeType()
Returns the change type this event represents. One of the FileSystemEvent constants.
getState() Method
public Object
getState()
getTimestamp() Method
public long getTimestamp()
toString() Method
public String
toString()
-
Overrides
-
EventObject.toString()