public interface FileEvent extends Event
To allow for event handling chains for the very same event, some issues need to be respected when
handling a PathEvent:
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getAsURI()
Deprecated.
Use
Path.toUri() instead. |
java.net.URL |
getAsURL()
Deprecated.
Use
Path.toUri() instead. |
java.io.File |
getFile()
Deprecated.
Use
Path.toFile() instead. |
java.nio.file.attribute.BasicFileAttributes |
getFileAttributes()
Gets the basic file attributes of the path of this event.
|
java.util.Date |
getLastModified()
Deprecated.
Use
BasicFileAttributes.lastModifiedTime() instead. |
java.lang.String |
getName()
Deprecated.
Use
Path.getFileName() instead. |
java.nio.file.Path |
getPath()
Gets the path that caused this event.
|
getCreationTime, getEventManager, getEventType, getID, getSourceID, getSourceTypejava.nio.file.Path getPath()
java.nio.file.attribute.BasicFileAttributes getFileAttributes()
@Deprecated java.lang.String getName()
Path.getFileName() instead.@Deprecated java.util.Date getLastModified()
BasicFileAttributes.lastModifiedTime() instead.@Deprecated java.net.URI getAsURI()
Path.toUri() instead.@Deprecated java.net.URL getAsURL()
Path.toUri() instead.@Deprecated java.io.File getFile()
Path.toFile() instead.