|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jorion.balboa.lookup.Lookup
public class Lookup
Start class for the lookup feature.
| Constructor Summary | |
|---|---|
Lookup(Config cfg)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addListener(IListener listener)
Register a new listener. |
protected void |
callListener(java.io.File jar,
java.util.List<java.lang.String> entries)
Call the listeners to signal a file was parsed. |
protected static boolean |
compareEndsWith(java.lang.String expectedName,
java.lang.String entryName,
boolean ignoreCase)
Standard case: compare end of strings. |
protected static boolean |
comparePartial(java.lang.String expectedName,
java.lang.String entryName,
boolean ignoreCase)
Litteral comparison. |
protected static boolean |
compareWildcards(java.lang.String expectedName,
java.lang.String entryName,
boolean ignoreCase)
Comparison with wild cards. |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAllJars()
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getFoundJars()
|
protected void |
parseDir(java.io.File dir)
Parse the given directory. |
protected java.util.List<java.lang.String> |
parseJar(java.io.File jar)
Parse the given jar looking for the given filename. |
void |
start()
Retrieve all the jars of the source directory and parse them. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lookup(Config cfg)
cfg - The configuration object.| Method Detail |
|---|
public void addListener(IListener listener)
listener - The listener to register.
protected void callListener(java.io.File jar,
java.util.List<java.lang.String> entries)
jar - The jar parsed.entries - The list of entries in this jar corresponding to the search criteria.public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllJars()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getFoundJars()
public void start()
throws java.io.IOException
java.io.IOException - If an I/O error occurred.
protected void parseDir(java.io.File dir)
throws java.io.IOException
dir - The directory to parse.
java.io.IOException - If an I/O error occurred.
protected java.util.List<java.lang.String> parseJar(java.io.File jar)
throws java.io.IOException
jar - The jar to parse.
java.io.IOException - If an I/O error occurred.
protected static boolean compareEndsWith(java.lang.String expectedName,
java.lang.String entryName,
boolean ignoreCase)
expectedName - The expected name.entryName - The jar entry name.ignoreCase - True if the entryName must be converted to lower case.
protected static boolean comparePartial(java.lang.String expectedName,
java.lang.String entryName,
boolean ignoreCase)
expectedName - The expected name.entryName - The jar entry name.ignoreCase - True if the entryName must be converted to lower case.
protected static boolean compareWildcards(java.lang.String expectedName,
java.lang.String entryName,
boolean ignoreCase)
expectedName - The expected name.entryName - The jar entry name.ignoreCase - True if the entryName must be converted to lower case.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||