public class FileRenameEvent extends FileEvent
source
Constructor and Description |
---|
FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext)
Creates new
FileRenameEvent , specifying an event location. |
FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext,
boolean expected)
Creates new
FileRenameEvent , specifying an event location
and whether the event was expected by the system. |
FileRenameEvent(FileObject src,
String name,
String ext)
Creates new
FileRenameEvent . |
Modifier and Type | Method and Description |
---|---|
String |
getExt()
Get original extension of the file.
|
String |
getName()
Get original name of the file.
|
firedFrom, getFile, getTime, isExpected, runWhenDeliveryOver, toString
getSource
public FileRenameEvent(FileObject src, String name, String ext)
FileRenameEvent
. The FileObject
where the action took place
is assumed to be the same as the source object.src
- source file which sent this eventname
- original file nameext
- original file extensionpublic FileRenameEvent(FileObject src, FileObject file, String name, String ext)
FileRenameEvent
, specifying an event location.src
- source file which sent this eventfile
- file object where the action took placename
- original file nameext
- original file extensionpublic FileRenameEvent(FileObject src, FileObject file, String name, String ext, boolean expected)
FileRenameEvent
, specifying an event location
and whether the event was expected by the system.src
- source file which sent this eventfile
- file object where the action took placename
- original file nameext
- original file extensionexpected
- whether the value was expected