All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scannotation.archiveiterator.StreamIterator Maven / Gradle / Ivy

Go to download

Scannotation is a Java library that creates an annotation database from a set of .class files

The newest version!
package org.scannotation.archiveiterator;

import java.io.InputStream;

/**
 * Simpler iterator than java.util.iterator.  Things like JarInputStream does not allow you to implement hasNext()
 *
 * @author Bill Burke
 * @version $Revision: 1 $
 */
public interface StreamIterator
{
   /**
    * User is resposible for closing the InputStream returned
    *
    * @return null if no more streams left to iterate on
    */
   InputStream next();

   /**
    * Cleanup any open resources of the iterator
    *
    */
   void close();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy