Class JarFileIterator

  • All Implemented Interfaces:
    java.lang.Iterable<ClassFile>, 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

      Constructor Description
      JarFileIterator​( stream)
      Construct an iterator over a jar stream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ClassFile getNextClassFile()
      Get the next ClassFile object from the jar
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • JarFileIterator

        public JarFileIterator​( stream)
        Construct an iterator over a jar stream
        stream - the basic input stream from which the Jar is received
        Throws: - 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 interface ClassFileIterator
        a ClassFile object describing the class from the jar