|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.isocra.utils.jarSearch.EntryVisitor
com.isocra.utils.jarSearch.EntryNameVisitor
Checks to see if the name of the entry matches the pattern we're looking for
| Constructor Summary | |
EntryNameVisitor(java.lang.String patternStr)
Take in a string pattern that we can use for matching against jar entry names. |
|
| Method Summary | |
java.lang.String |
getResults()
Check to see if we've found anything and if not say so, otherwise return our results |
void |
visit(java.io.File file)
Look at the name of the file and see if it matches, if so add its name to the output |
void |
visit(java.util.jar.JarFile jar,
java.util.jar.JarEntry entry)
look at the name of the entry and see if it matches, if so, add its name to the output. |
| Methods inherited from class com.isocra.utils.jarSearch.EntryVisitor |
isJar, searchDir, searchJar |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EntryNameVisitor(java.lang.String patternStr)
patternStr - The pattern is given to Pattern.compile and is a regular expression.Pattern| Method Detail |
public void visit(java.util.jar.JarFile jar,
java.util.jar.JarEntry entry)
visit in class EntryVisitorjar - the jar file we're currently searching (we need this so that we can output the name)entry - the entry that we're trying to match against.public void visit(java.io.File file)
visit in class EntryVisitorfile - the file we're trying to match against.public java.lang.String getResults()
getResults in class EntryVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||