org.apache.commons.io.find
Class FindEvent

java.lang.Object
  extended byorg.apache.commons.io.find.FindEvent

public class FindEvent
extends java.lang.Object

Event upon which notification is made to a FindListener. It contains references to the Finder and the Directory in which the event occured. Depending on the particular occasion, it may also contain a set of files or a file.


Field Summary
private  java.io.File directory
           
private  java.io.File file
           
private  java.io.File[] files
           
private  Finder finder
           
private  java.lang.String type
           
 
Constructor Summary
FindEvent(Finder finder, java.lang.String type, java.io.File directory)
           
FindEvent(Finder finder, java.lang.String type, java.io.File directory, java.io.File file)
           
FindEvent(Finder finder, java.lang.String type, java.io.File directory, java.io.File[] files)
           
 
Method Summary
 java.io.File getDirectory()
           
 java.io.File getFile()
          File found.
 java.io.File[] getFiles()
          Files found in a directory.
 Finder getFinder()
           
 java.lang.String getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

directory

private java.io.File directory

finder

private Finder finder

file

private java.io.File file

files

private java.io.File[] files

type

private java.lang.String type
Constructor Detail

FindEvent

public FindEvent(Finder finder,
                 java.lang.String type,
                 java.io.File directory)

FindEvent

public FindEvent(Finder finder,
                 java.lang.String type,
                 java.io.File directory,
                 java.io.File file)

FindEvent

public FindEvent(Finder finder,
                 java.lang.String type,
                 java.io.File directory,
                 java.io.File[] files)
Method Detail

getDirectory

public java.io.File getDirectory()

getFinder

public Finder getFinder()

getFile

public java.io.File getFile()
File found.


getFiles

public java.io.File[] getFiles()
Files found in a directory.


getType

public java.lang.String getType()

toString

public java.lang.String toString()