public class LoadPathToFileCache extends Object
com.google.clearsilver.base.CSFileCache
.Constructor and Description |
---|
LoadPathToFileCache(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(List<String> loadPaths,
String filename,
String filePath)
Add a new mapping to the cache.
|
String |
lookup(List<String> loadPaths,
String filename)
Lookup in the cache to see if we have a mapping from the given loadpaths and filename to an
absolute file path.
|
static String |
makeCacheKey(List<String> loadPaths,
String filename) |
public String lookup(List<String> loadPaths, String filename)
loadPaths
- the ordered list of directories to search for the file.filename
- the name of the file.null
if not in the cache.public void add(List<String> loadPaths, String filename, String filePath)
loadPaths
- the ordered list of directories to search for the file.filename
- the name of the file.filePath
- the absolute filepath location of the fileCopyright © 2010–2014 Google. All rights reserved.