Package overit.geocall.util
Class JarIndexer
java.lang.Object
overit.geocall.util.JarIndexer
Utility to scan jar files and maintain a cache of the content
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static ConcurrentHashMap<String, Set<String>> a set of queries idetified by a key, and the respective query resultstatic final StringFilterthese are the resources that are in interest to geocall to be scanned -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistContent(String pkg) scans or retrieves the USEFUL RESOURCES inside the packed pkg, scanned all over the jarslistContent(String pkg, StringFilter sf) scans or retrieves some resources inside the packed pkg, scanned all over the jarsprotected static voidscanJarContent(String jar, String pkg, StringFilter sf, Set<String> collect) scans the content of a jar file to collect all the interesting resources
-
Field Details
-
USEFUL_PACKAGING_RESOURCES
these are the resources that are in interest to geocall to be scanned -
cache
a set of queries idetified by a key, and the respective query result
-
-
Constructor Details
-
JarIndexer
public JarIndexer()
-
-
Method Details
-
listContent
scans or retrieves the USEFUL RESOURCES inside the packed pkg, scanned all over the jars- Parameters:
pkg- the package to be scanned- Returns:
- the set of resources
-
listContent
scans or retrieves some resources inside the packed pkg, scanned all over the jars- Parameters:
pkg- the package to be scannedsf- the flter to identificate interesting resurces- Returns:
- the set of resources
-
scanJarContent
scans the content of a jar file to collect all the interesting resources- Parameters:
jar- the path to the jar filepkg- the packed to look inside for resourcessf- the filter to identificate interesting resourcescollect- a set to put collected resources inside
-