home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / APCHSSL2.ZIP / OS2HTTPD / jserv / com / bitmechanic / gsp / FileDependancy.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-02-03  |  708 b   |  22 lines

  1. package com.bitmechanic.gsp;
  2.  
  3. import java.io.File;
  4.  
  5. public class FileDependancy {
  6.    private File file;
  7.    private long timestamp;
  8.  
  9.    public FileDependancy(String var1, String var2) {
  10.       this.file = new File(var1);
  11.       this.timestamp = Long.parseLong(var2);
  12.    }
  13.  
  14.    public boolean isCurrent() {
  15.       if (this.file.exists()) {
  16.          return this.file.lastModified() <= this.timestamp;
  17.       } else {
  18.          return this.timestamp <= 0L;
  19.       }
  20.    }
  21. }
  22.