Lines Matching refs:cache
48 protected Properties cache = new Properties();
55 * file may be available. When the forcing of cache is enabled the reader will
66 * Returns if the using of cache is forced.
75 * Sets the cache dir for the inference engine to find the cached files when a
76 * file cannot be downparseed from its original URL. The cache dir should include
83 * @param dir sets the local cache directory. if null it forces not to use the cache.
90 cache.clear();
91 System.out.println("INFO: Local cache directory is disabled");
98 cache = new Properties();
100 cache.load(new FileInputStream(indexFile));
102 System.out.println("INFO: Cache has been initialized with " + cache.size() + " entries");
124 * cache for the given file or cached file is not found.
133 if(cache == null) return null;
137 String localFileName = cache.getProperty(fileURI);
166 cache.setProperty(fileURI, localFile.getName());
180 cache.store(new FileOutputStream(indexFileName), "");
192 if (cache.containsKey(uri)) {
193 cache.remove(uri);