sfi.director.util.FileListComparer Class Reference

List of all members.

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()!


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)

Package Attributes

BufferedReader inlist = null
PrintWriter outlist = null
String current = null
Vector attributes = null
String currentName = null
boolean matched = false
Vector deleted = new Vector()

Static Package Attributes

static final String separator = ":|:"


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]
 


Member Data Documentation

Vector sfi.director.util.FileListComparer.attributes = null [package]
 

String sfi.director.util.FileListComparer.current = null [package]
 

String sfi.director.util.FileListComparer.currentName = null [package]
 

Vector sfi.director.util.FileListComparer.deleted = new Vector() [package]
 

BufferedReader sfi.director.util.FileListComparer.inlist = null [package]
 

boolean sfi.director.util.FileListComparer.matched = false [package]
 

PrintWriter sfi.director.util.FileListComparer.outlist = null [package]
 

final String sfi.director.util.FileListComparer.separator = ":|:" [static, package]
 


The documentation for this class was generated from the following file:
Generated on Sat May 19 01:20:00 2012 for Node Director by  doxygen 1.4.5