scannotation 1.0.2-redhat-2

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
 InputStream next()
          User is resposible for closing the InputStream returned
 

Method Detail

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


scannotation 1.0.2-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.