Package org.scannotation.archiveiterator
Class JarIterator
- java.lang.Object
-
- org.scannotation.archiveiterator.JarIterator
-
- All Implemented Interfaces:
StreamIterator
public class JarIterator extends java.lang.Object implements StreamIterator
- Version:
- $Revision: 1 $
-
-
Constructor Summary
Constructors Constructor Description JarIterator(java.io.File file, Filter filter)JarIterator(java.io.InputStream is, Filter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Cleanup any open resources of the iteratorjava.io.InputStreamnext()User is resposible for closing the InputStream returnedprivate voidsetNext()
-
-
-
Field Detail
-
jar
java.util.jar.JarInputStream jar
-
next
java.util.jar.JarEntry next
-
filter
Filter filter
-
initial
boolean initial
-
closed
boolean closed
-
-
Method Detail
-
setNext
private void setNext()
-
next
public java.io.InputStream next()
Description copied from interface:StreamIteratorUser is resposible for closing the InputStream returned- Specified by:
nextin interfaceStreamIterator- Returns:
- null if no more streams left to iterate on
-
close
public void close()
Description copied from interface:StreamIteratorCleanup any open resources of the iterator- Specified by:
closein interfaceStreamIterator
-
-