org.rhq.test
Class DuplicatePackagesDetector.Visitor
java.lang.Object
org.rhq.test.DuplicatePackagesDetector.Visitor
- Enclosing class:
- DuplicatePackagesDetector
public static class DuplicatePackagesDetector.Visitor
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DuplicatePackagesDetector.Visitor
public DuplicatePackagesDetector.Visitor()
getMap
public Map<String,Set<String>> getMap()
visit
public boolean visit(ZipEntry entry,
ZipInputStream stream,
String zipFilePath)
throws Exception
- Visits a specific zip file entry. Implementations can read the entry content from the given stream but
must not close the stream - the caller of this method will handle the lifecycle of the stream.
- Parameters:
entry - the entry being visitedstream - the stream containing the zip contentzipFilePath - the actual zip file that is being walked
- Returns:
- the visitor should return
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.
- Throws:
Exception - if the visitation failed for some reason - this will abort further walking of the zip content
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.