Interface StreamIterator

  • All Known Implementing Classes:
    FileIterator, JarIterator

    public interface StreamIterator
    Simpler iterator than java.util.iterator. Things like JarInputStream does not allow you to implement hasNext()
    Version:
    $Revision: 1 $
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Cleanup any open resources of the iterator
      java.io.InputStream next()
      User is resposible for closing the InputStream returned
    • Method Detail

      • next

        java.io.InputStream next()
        User is resposible for closing the InputStream returned
        Returns:
        null if no more streams left to iterate on
      • close

        void close()
        Cleanup any open resources of the iterator