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 TypeMethodDescriptionvoid
checkNullAnswer
(org.apache.camel.Message answer) void
close()
protected boolean
protected org.apache.camel.Message
doNext()
boolean
hasNext()
boolean
org.apache.camel.Message
next()
void
remove()
void
setAllowEmptyDirectory
(boolean allowEmptyDirectory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ZipIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
doHasNext
protected boolean doHasNext() -
next
public org.apache.camel.Message next() -
doNext
protected org.apache.camel.Message doNext() -
checkNullAnswer
public void checkNullAnswer(org.apache.camel.Message answer) -
remove
public void remove() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
isSupportIteratorForEmptyDirectory
public boolean isSupportIteratorForEmptyDirectory() -
setAllowEmptyDirectory
public void setAllowEmptyDirectory(boolean allowEmptyDirectory)
-