I have code as follows:
for (;;) {
// retrieve key
WatchKey key = watcher.take();
// process events
for (WatchEvent<?> event: key.pollEvents()) {
:
}
// reset the key
boolean valid = key.reset();
}
- Now that Jave 7 has been out for a little while, is there a way to determine if a large file has completed being created using the nio library, or am I coding around that?