phelps.io

Class DeltaFile

public class DeltaFile extends Object

UNIMPLEMENTED. Maintain a list of files and report lists of moved, changed, new, and deleted. Some possible uses: maintain a list of font names extracted from many font files, update links in web pages after a site reorganization, check for changes in some API's Javadoc, log changes in OS files to check for intrusions, see what you've been up to in your home directory. Associate java.util.Observer to do some work.

Version: $Revision$ $Date$

Constructor Summary
DeltaFile(File file, File watchdir, boolean recurse)
DeltaFile(File file, File[] watchdir, boolean recurse)
Method Summary
List<File>getChanged()
List<File>getDeleted()
List<File>getDuplicates()
StringgetInfo(File file)
List<File>getMoved()
List<File>getNew()
voidsetInfo(File file, String info)
voidupdate(FileFilter filter)
Update lists of moved/changed/new/deleted since last update.
voidwrite()

Constructor Detail

DeltaFile

public DeltaFile(File file, File watchdir, boolean recurse)

DeltaFile

public DeltaFile(File file, File[] watchdir, boolean recurse)

Method Detail

getChanged

public List<File> getChanged()

getDeleted

public List<File> getDeleted()

getDuplicates

public List<File> getDuplicates()

getInfo

public String getInfo(File file)

getMoved

public List<File> getMoved()

getNew

public List<File> getNew()

setInfo

public void setInfo(File file, String info)

update

public void update(FileFilter filter)
Update lists of moved/changed/new/deleted since last update.

write

public void write()