|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.util.updater.ExtractorZipFileVisitor
public class ExtractorZipFileVisitor
A visitor object that will extract each zip entry it visits, realizing files that need to have their replacement variables replaced.
| Constructor Summary | |
|---|---|
ExtractorZipFileVisitor(File rootDir,
Pattern filesToRealizeRegex,
TemplateEngine templateEngine,
Set<String> filesToNotExtract,
DeployDifferences diff,
boolean dryRun)
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 ExtractorZipFileVisitor(File rootDir,
Pattern filesToRealizeRegex,
TemplateEngine templateEngine,
Set<String> filesToNotExtract,
DeployDifferences diff,
boolean dryRun)
rootDir - the top level directory where all zip file entries will be extracted to.
In other words, all zip file entries' paths are relative to this directory.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 realizedfilesToNotExtract - set of files that are not to be extracted from the zip and stored; these are to be skippeddiff - optional object that is told when files are realizeddryRun - if true, this won't actually write files to the filesystem| 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 | |||||||||