public class InMemoryZipFileVisitor extends Object implements ZipUtil.ZipEntryVisitor
| Constructor and Description |
|---|
InMemoryZipFileVisitor(Pattern filesToRealizeRegex,
TemplateEngine templateEngine)
Creates the visitor.
|
| Modifier and Type | Method and Description |
|---|---|
FileHashcodeMap |
getFileHashcodeMap()
Returns the file/hashcode data this visitor has collected.
|
boolean |
visit(ZipEntry entry,
ZipInputStream stream)
Visits a specific zip file entry.
|
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 realizedpublic FileHashcodeMap getFileHashcodeMap()
public boolean visit(ZipEntry entry, ZipInputStream stream) throws Exception
ZipUtil.ZipEntryVisitorvisit in interface ZipUtil.ZipEntryVisitorentry - the entry being visitedstream - the stream containing the zip contenttrue 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 contentCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.