Snapper 1.0 API

org.enhydra.snapper.business
Class FileChecker

java.lang.Object
  extended byorg.enhydra.snapper.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


Constructor Summary
FileChecker()
           
FileChecker(int tAge, int size, Site site)
           
 
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
 

Constructor Detail

FileChecker

public FileChecker()

FileChecker

public FileChecker(int tAge,
                   int size,
                   Site site)
Method Detail

check

public boolean check(java.io.File file)

check

public boolean check(java.lang.String fileNAme,
                     long modified)

Snapper 1.0 API