Class ZipIterator

java.lang.Object
org.apache.camel.dataformat.zipfile.ZipIterator
All Implemented Interfaces:
Closeable, AutoCloseable, 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 Details

    • ZipIterator

      public ZipIterator(org.apache.camel.Exchange exchange, InputStream inputStream)
  • Method Details

    • 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 AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • isSupportIteratorForEmptyDirectory

      public boolean isSupportIteratorForEmptyDirectory()
    • setAllowEmptyDirectory

      public void setAllowEmptyDirectory(boolean allowEmptyDirectory)