org.sadun.util.polling
Class FileMovedEvent

java.lang.Object
  extended byTimeStampedSignal
      extended byorg.sadun.util.polling.BasePollerEvent
          extended byorg.sadun.util.polling.FileMovedEvent

public class FileMovedEvent
extends BasePollerEvent

Indicates that the poller has performed an automatic move of a polled file. Can be signalled only if the autoMove move is active (see DirectoryPoller class description).

Version:
1.0
Author:
C. Sadun
See Also:
Serialized Form

Method Summary
 org.sadun.util.MovedFile getMovedFile()
          Return a MovedFile object encapsulating the move operation.
 java.io.File getOriginalPath()
          Return the original path of the file.
 java.io.File getPath()
          Return the new path of the file.
 
Methods inherited from class org.sadun.util.polling.BasePollerEvent
getPoller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOriginalPath

public java.io.File getOriginalPath()
Return the original path of the file. Since the file has been moved, this File object does not correspond anymore to a physical file on the filesystem.

Returns:
the original path of the file.

getPath

public java.io.File getPath()
Return the new path of the file. Since the file has been moved, this File object corresponds to the physical file on the filesystem.

Returns:
the new path of the file.

getMovedFile

public org.sadun.util.MovedFile getMovedFile()
Return a MovedFile object encapsulating the move operation.

Returns:
a MovedFile object encapsulating the move operation.


Copyright © 1999, 2000 Cristiano Sadun. This software is released under GPL.