scannotation 1.0.2-redhat-2

org.scannotation.archiveiterator
Class JarIterator

java.lang.Object
  extended by org.scannotation.archiveiterator.JarIterator
All Implemented Interfaces:
StreamIterator

public class JarIterator
extends Object
implements StreamIterator

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
JarIterator(File file, Filter filter)
           
JarIterator(InputStream is, Filter filter)
           
 
Method Summary
 void close()
          Cleanup any open resources of the iterator
 InputStream next()
          User is resposible for closing the InputStream returned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarIterator

public JarIterator(File file,
                   Filter filter)
            throws IOException
Throws:
IOException

JarIterator

public JarIterator(InputStream is,
                   Filter filter)
            throws IOException
Throws:
IOException
Method Detail

next

public InputStream next()
Description copied from interface: StreamIterator
User is resposible for closing the InputStream returned

Specified by:
next in interface StreamIterator
Returns:
null if no more streams left to iterate on

close

public void close()
Description copied from interface: StreamIterator
Cleanup any open resources of the iterator

Specified by:
close in interface StreamIterator

scannotation 1.0.2-redhat-2

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