Class ZipIterator
java.lang.Object
org.apache.camel.dataformat.zipfile.ZipIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<org.apache.camel.Message>
The Iterator which can go through the ZipInputStream according to ZipEntry Based on the thread
zip file best practices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckNullAnswer(org.apache.camel.Message answer) voidclose()booleanhasNext()booleanorg.apache.camel.Messagenext()voidremove()voidsetAllowEmptyDirectory(boolean allowEmptyDirectory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ZipIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
public org.apache.camel.Message next() -
checkNullAnswer
public void checkNullAnswer(org.apache.camel.Message answer) -
remove
public void remove() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isSupportIteratorForEmptyDirectory
public boolean isSupportIteratorForEmptyDirectory() -
setAllowEmptyDirectory
public void setAllowEmptyDirectory(boolean allowEmptyDirectory)
-