org.apache.camel.dataformat.zipfile
Class ZipIterator

java.lang.Object
  extended by org.apache.camel.dataformat.zipfile.ZipIterator
All Implemented Interfaces:
Closeable, Iterator<org.apache.camel.Message>

public class ZipIterator
extends Object
implements Iterator<org.apache.camel.Message>, Closeable

The Iterator which can go through the ZipInputStream according to ZipEntry Based on the thread zip file best practices


Constructor Summary
ZipIterator(org.apache.camel.Message inputMessage)
           
 
Method Summary
 void checkNullAnswer(org.apache.camel.Message answer)
           
 void close()
           
 boolean hasNext()
           
 org.apache.camel.Message next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipIterator

public ZipIterator(org.apache.camel.Message inputMessage)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<org.apache.camel.Message>

next

public org.apache.camel.Message next()
Specified by:
next in interface Iterator<org.apache.camel.Message>

checkNullAnswer

public void checkNullAnswer(org.apache.camel.Message answer)

remove

public void remove()
Specified by:
remove in interface Iterator<org.apache.camel.Message>

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Apache Camel