|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.file.FileJanitor
public class FileJanitor
class to clean up files and directories the directories are retained longer since java knows only last modified. This is actually a good thing
| Constructor Summary | |
|---|---|
FileJanitor(File baseDir,
FileFilter filter)
|
|
FileJanitor(File baseDir,
long age)
|
|
| Method Summary | |
|---|---|
Vector<File> |
cleanup()
process all accepted files and empty directories that have been accepted note that the filter may actually do something |
void |
setDeleteEmptyDir(boolean delEmpty)
if true, we delete empty directories |
void |
setLogSingle(boolean logSingle)
if true, we log each deletion |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileJanitor(File baseDir,
FileFilter filter)
baseDir - filter - the file filter that
public FileJanitor(File baseDir,
long age)
baseDir - age - the minimum zapp file age in seconds| Method Detail |
|---|
public void setLogSingle(boolean logSingle)
logSingle - public void setDeleteEmptyDir(boolean delEmpty)
delEmpty - public Vector<File> cleanup()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||