java.lang.Object
org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils
public final class ClassFileVisitorUtils
extends Object
Utility to visit classes in a library given either as a jar file or an exploded directory.
Author:
Mark Hobson
Method Summary
All Methods Static Methods Concrete Methods
static void
static void
Visits the classes of a local JAR file or directory.
static void
Visits the classes exposed by a
ClassEntrySource and closes the source afterwards.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Details
accept
Visits the classes exposed by a
ClassEntrySource and closes the source afterwards.
This is the common implementation for local paths, URLs and in-memory archives.
Parameters:
source - the class entry source to visit
visitor - a ClassFileVisitor object
Throws:
IOException - I/O error or corrupt class file
Since:
1.18.0
accept
Visits the classes of a local JAR file or directory.
Parameters:
path - the JAR file or directory to visit
visitor - a ClassFileVisitor object
Throws:
IOException - I/O error or corrupt class file
Since:
1.18.0
accept
Parameters:
url - the URL of the jar file or directory to visit
visitor - a ClassFileVisitor object
Throws:
IOException - I/O error or corrupt class file