org.apache.tools.ant.taskdefs.optional.dependClass JarFileIterator
- java.lang.Object
- org.apache.tools.ant.taskdefs.optional.depend.JarFileIterator
- All Implemented Interfaces:
- ClassFileIterator
public class JarFileIterator extends java.lang.Object implements ClassFileIteratorA class file iterator which iterates through the contents of a Java jar file.
Constructor Summary
Constructors Constructor and Description JarFileIterator(java.io.InputStream stream)
Construct an iterator over a jar stream
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ClassFile
getNextClassFile()
Get the next ClassFile object from the jar
Constructor Detail
JarFileIterator
public JarFileIterator(java.io.InputStream stream) throws java.io.IOExceptionConstruct an iterator over a jar stream
- Parameters:
stream
- the basic input stream from which the Jar is received- Throws:
java.io.IOException
- if the jar stream cannot be created
Method Detail
getNextClassFile
public ClassFile getNextClassFile()Get the next ClassFile object from the jar
- Specified by:
getNextClassFile
in interfaceClassFileIterator
- Returns:
- a ClassFile object describing the class from the jar