|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.util.updater.InMemoryZipFileVisitor
public class InMemoryZipFileVisitor
A visitor object that will perform some in-memory work for each zip entry it visits.
| Constructor Summary | |
|---|---|
InMemoryZipFileVisitor(Pattern filesToRealizeRegex,
TemplateEngine templateEngine)
Creates the visitor. |
|
| Method Summary | |
|---|---|
FileHashcodeMap |
getFileHashcodeMap()
Returns the file/hashcode data this visitor has collected. |
boolean |
visit(ZipEntry entry,
ZipInputStream stream)
Visits a specific zip file entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryZipFileVisitor(Pattern filesToRealizeRegex,
TemplateEngine templateEngine)
filesToRealizeRegex - pattern of files that are to be realized prior to hashcodes being computedtemplateEngine - the template engine that replaces replacement variables in files to be realized| Method Detail |
|---|
public FileHashcodeMap getFileHashcodeMap()
public boolean visit(ZipEntry entry,
ZipInputStream stream)
throws Exception
ZipUtil.ZipEntryVisitor
visit in interface ZipUtil.ZipEntryVisitorentry - the entry being visitedstream - the stream containing the zip content
true if everything is OK and processing of the zip content
should continue; returning false will tell the walker to abort further traversing
of the zip content.
Exception - if the visitation failed for some reason - this will abort further walking of the zip content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||