org.rhq.test
Class DuplicatePackagesDetector.Visitor

java.lang.Object
  extended by org.rhq.test.DuplicatePackagesDetector.Visitor
Enclosing class:
DuplicatePackagesDetector

public static class DuplicatePackagesDetector.Visitor
extends Object


Constructor Summary
DuplicatePackagesDetector.Visitor()
           
 
Method Summary
 Map<String,Set<String>> getMap()
           
 boolean visit(ZipEntry entry, ZipInputStream stream, String zipFilePath)
          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

DuplicatePackagesDetector.Visitor

public DuplicatePackagesDetector.Visitor()
Method Detail

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 visited
stream - the stream containing the zip content
zipFilePath - 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.