Node Director
Public Member Functions | Protected Member Functions | List of all members
sfi.director.util.FileListComparer Class Reference

FileListComparer compares a list of files injected with compareNext() calls and their attributes with a list of files held in a text file. More...

Public Member Functions

 FileListComparer (BufferedReader in)
 FileListComparer (PrintWriter out)
 FileListComparer (BufferedReader in, PrintWriter out)
void close ()
void addFile (FileStats stat, String name)
boolean inList (String name)
 is file 'name' in the list? Only call this after calling compareNext() for the same file!
boolean compareNext (FileStats stat, String name) throws DirectorException
Vector getDeleted ()

Protected Member Functions

void finalize ()
String nullify (String file)
int fileCompareTo (String file1, String file2)

Detailed Description

FileListComparer compares a list of files injected with compareNext() calls and their attributes with a list of files held in a text file.

It will also write file information injected via the addFile() call to an output text file.

Important: files must be passed to compareNext() in the same order they were originally passed to addFile()!

Constructor & Destructor Documentation

sfi.director.util.FileListComparer.FileListComparer ( BufferedReader  in)
sfi.director.util.FileListComparer.FileListComparer ( PrintWriter  out)
sfi.director.util.FileListComparer.FileListComparer ( BufferedReader  in,
PrintWriter  out 
)

Member Function Documentation

void sfi.director.util.FileListComparer.addFile ( FileStats  stat,
String  name 
)
void sfi.director.util.FileListComparer.close ( )
boolean sfi.director.util.FileListComparer.compareNext ( FileStats  stat,
String  name 
) throws DirectorException
int sfi.director.util.FileListComparer.fileCompareTo ( String  file1,
String  file2 
)
protected
void sfi.director.util.FileListComparer.finalize ( )
protected
Vector sfi.director.util.FileListComparer.getDeleted ( )
boolean sfi.director.util.FileListComparer.inList ( String  name)

is file 'name' in the list? Only call this after calling compareNext() for the same file!

String sfi.director.util.FileListComparer.nullify ( String  file)
protected

The documentation for this class was generated from the following file: