org.apache.tools.ant.taskdefs.optional.depend

Class JarFileIterator

public class JarFileIterator extends Object implements ClassFileIterator

A class file iterator which iterates through the contents of a Java jar file.
Constructor Summary
JarFileIterator(InputStream stream)
Construct an iterator over a jar stream
Method Summary
ClassFilegetNextClassFile()
Get the next ClassFile object from the jar

Constructor Detail

JarFileIterator

public JarFileIterator(InputStream stream)
Construct 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 Detail

getNextClassFile

public ClassFile getNextClassFile()
Get the next ClassFile object from the jar

Returns: a ClassFile object describing the class from the jar