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

    Modifier and Type
    Method
    Description
    void
    Cleanup any open resources of the iterator
    User is resposible for closing the InputStream returned
  • Method Details

    • next

      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