comparison servlet/src/digilib/io/DocuDirCache.java @ 545:88ec23c2b2fb digilibPDF

fixed problem after removing old settings
author casties
date Fri, 15 Oct 2010 10:42:57 +0200
parents e758a49258e8
children 686086d6e6d6
comparison
equal deleted inserted replaced
544:5ff500d6812a 545:88ec23c2b2fb
56 long hits = 0; 56 long hits = 0;
57 57
58 /** number of cache misses */ 58 /** number of cache misses */
59 long misses = 0; 59 long misses = 0;
60 60
61 /** use safe (but slow) indexing */
62 boolean safeDirIndex = false;
63
64 /** the root directory element */ 61 /** the root directory element */
65 public static Directory ROOT = null; 62 public static Directory ROOT = null;
66 63
67 /** 64 /**
68 * Constructor with array of base directory names and file classes. 65 * Constructor with array of base directory names and file classes.
73 public DocuDirCache(String[] bd, int[] fileClasses, 70 public DocuDirCache(String[] bd, int[] fileClasses,
74 DigilibConfiguration dlConfig) { 71 DigilibConfiguration dlConfig) {
75 baseDirNames = bd; 72 baseDirNames = bd;
76 map = new HashMap<String, DocuDirectory>(); 73 map = new HashMap<String, DocuDirectory>();
77 this.fileClasses = fileClasses; 74 this.fileClasses = fileClasses;
78 safeDirIndex = dlConfig.getAsBoolean("safe-dir-index");
79 } 75 }
80 76
81 /** 77 /**
82 * Constructor with array of base directory names. 78 * Constructor with array of base directory names.
83 * 79 *