sam.event
Class FileEvent

java.lang.Object
  |
  +--sam.event.FileEvent

public class FileEvent
extends java.lang.Object

Event concerning file.


Field Summary
 sam.entry.Entry entry
          The Entry concerned by this event
 java.lang.String message
          A message describing this event in a human-readable format
 
Constructor Summary
FileEvent(sam.entry.Entry entry, java.lang.String message)
           
 
Method Summary
 java.lang.String path()
          Gets the relative path of the file concerned by this event.
 void printTo(java.io.PrintWriter output)
          Prints this event onto specified Writer
 java.lang.String toString()
          Gets a standardized representation of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entry

public final sam.entry.Entry entry
The Entry concerned by this event


message

public final java.lang.String message
A message describing this event in a human-readable format

Constructor Detail

FileEvent

public FileEvent(sam.entry.Entry entry,
                 java.lang.String message)
Method Detail

path

public java.lang.String path()
Gets the relative path of the file concerned by this event. Warning: the directory separator is that of Entry i.e. the "/" which might differ from the java.io.File.separator especially under Win32.

See Also:
sam.entry.Entry.name

toString

public java.lang.String toString()
Gets a standardized representation of this event. This is currently implemented as something like "myDir/myDir/myFile: here is the message"

Overrides:
toString in class java.lang.Object

printTo

public void printTo(java.io.PrintWriter output)
Prints this event onto specified Writer

See Also:
toString()