|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectname.pachler.nio.file.WatchEvent<T>
public abstract class WatchEvent<T>
Instances of this class hold the information of a particular change to
an element below the watched file system object (e.g. a file modification
or a rename). These objects can be retreived from a WatchKey once it has
been returned by the WatchService (using the poll()
or
take()
methods).
Nested Class Summary | |
---|---|
static interface |
WatchEvent.Kind<T>
Instances of this class act as tags to identify different kinds of events (like file creation or deletion) |
static interface |
WatchEvent.Modifier<T>
A modifier can be specified to register to
change the way changes to a watchable are reported. |
Constructor Summary | |
---|---|
protected |
WatchEvent()
|
Method Summary | |
---|---|
abstract T |
context()
|
abstract int |
count()
The number of times this event occurred, if it is cumulative. |
abstract WatchEvent.Kind<T> |
kind()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected WatchEvent()
Method Detail |
---|
public abstract T context()
Path
to the file that this event
refers to, relative to the watched Path
public abstract int count()
public abstract WatchEvent.Kind<T> kind()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |