org.scannotation.archiveiterator
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 $
Author:
Bill Burke

Method Summary
 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



Copyright 2008. All Rights Reserved.