org.enhydra.snapperAdmin.business
Class FileChecker
java.lang.Object
org.enhydra.snapperAdmin.business.FileChecker
public class FileChecker
- extends java.lang.Object
FileChecker
Class that checks size, age and type of the file qued for indexing.
Maximal size
and age
as well as file types
allowed for the site beeing indexed are stored in the SITES table in the database.
returns true if the file can
Method Summary |
boolean |
check(java.io.File file)
|
boolean |
check(java.lang.String fileNAme,
long modified)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileChecker
public FileChecker()
FileChecker
public FileChecker(int tAge,
int size,
Site site)
check
public boolean check(java.io.File file)
check
public boolean check(java.lang.String fileNAme,
long modified)