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

Class JarFileIterator

Implemented Interfaces:
ClassFileIterator

public class JarFileIterator
extends java.lang.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

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

Constructor Details

JarFileIterator

public JarFileIterator(InputStream stream)
            throws IOException
Construct an iterator over a jar stream

Parameters:
stream - the basic input stream from which the Jar is received

Method Details

getNextClassFile

public ClassFile getNextClassFile()
Get the next ClassFile object from the jar
Specified by:
getNextClassFile in interface ClassFileIterator

Returns:
a ClassFile object describing the class from the jar


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.