public class FilePollerEvent extends Fwk implements FwkInterface
| Modifier and Type | Field and Description |
|---|---|
static int |
CREATED
The event constant for created files.
|
static int |
DELETED
The event constant for deleted files.
|
static java.lang.String |
version |
| Constructor and Description |
|---|
FilePollerEvent(java.lang.Object source,
int type,
long modified,
java.lang.String path)
The construtor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getModification()
Retrieves the modified number.
|
java.lang.String |
getPath()
Retrieves the path of the file.
|
java.lang.Object |
getSource()
Retrieves the event source.
|
int |
getType()
Retrieves the type of the event.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
java.lang.String |
toString()
The new toString method.
|
getNiceVersion, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreleasepublic static final java.lang.String version
public static final int DELETED
public static final int CREATED
public FilePollerEvent(java.lang.Object source,
int type,
long modified,
java.lang.String path)
source - The source object of the event.type - The type of the event. Use the predefined constants.modified - The modified number of the file.path - The filename itself.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class Fwkpublic java.lang.Object getSource()
public long getModification()
public java.lang.String getPath()
public int getType()
public java.lang.String toString()
toString in class java.lang.Object