Class JarFileIterator
java.lang.Object
org.apache.tools.ant.taskdefs.optional.depend.JarFileIterator
- All Implemented Interfaces:
- Iterable<ClassFile>,- ClassFileIterator
A class file iterator which iterates through the contents of a Java jar
 file.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the next ClassFile object from the jarMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.taskdefs.optional.depend.ClassFileIteratoriteratorMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
JarFileIteratorConstruct an iterator over a jar stream- Parameters:
- stream- the basic input stream from which the Jar is received
- Throws:
- IOException- if the jar stream cannot be created
 
 
- 
- 
Method Details- 
getNextClassFileGet the next ClassFile object from the jar- Specified by:
- getNextClassFilein interface- ClassFileIterator
- Returns:
- a ClassFile object describing the class from the jar
 
 
-