public class FileChangeEvent extends Object
FileSystemWatcher| Modifier and Type | Class and Description |
|---|---|
static class |
FileChangeEvent.Type
Watched file event types.
|
| Constructor and Description |
|---|
FileChangeEvent(File file,
FileChangeEvent.Type type)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFile()
Get the file which was being watched.
|
FileChangeEvent.Type |
getType()
Get the type of event.
|
public FileChangeEvent(File file, FileChangeEvent.Type type)
file - the file which is being watchedtype - the type of event that was encounteredpublic File getFile()
public FileChangeEvent.Type getType()
Copyright © 2017 JBoss by Red Hat. All rights reserved.