diff servlet/src/digilib/io/FileOps.java @ 86:997ba69afb81

New version 1.8b1. With directory and file information cache. With enhanceRGB method for color correction.
author robcast
date Sun, 09 Mar 2003 21:37:27 +0100
parents 4e6757e8ccd4
children a398fc09ba71
line wrap: on
line diff
--- a/servlet/src/digilib/io/FileOps.java	Thu Feb 27 15:07:29 2003 +0100
+++ b/servlet/src/digilib/io/FileOps.java	Sun Mar 09 21:37:27 2003 +0100
@@ -78,7 +78,7 @@
     }
     // if fn is a directory name then open directory
     if (f.isDirectory()) {
-      File[] fl = f.listFiles(new ImgFileFilter());
+      File[] fl = f.listFiles(new ImageFileFilter());
       Arrays.sort(fl);
       if ((n > 0) && (n <= fl.length)) {
          return fl[n - 1];
@@ -102,7 +102,7 @@
     }
     // if fn is a directory name then return the number of files
     if (f.isDirectory()) {
-      return f.listFiles(new ImgFileFilter()).length;
+      return f.listFiles(new ImageFileFilter()).length;
     }
     // then fn must be something strange...
     return 0;
@@ -161,7 +161,7 @@
   /**
    *  FileFilter for image types (helper class for getFile)
    */
-  private class ImgFileFilter implements FileFilter {
+  static class ImageFileFilter implements FileFilter {
 
     public boolean accept(File f) {
       if (f.isFile()) {