Class TarIterator

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Iterator<org.apache.camel.Message>

    public class TarIterator
    extends Object
    implements Iterator<org.apache.camel.Message>, Closeable
    The Iterator which can go through the TarArchiveInputStream according to TarArchiveEntry Based on ZipIterator from camel-zipfile component
    • Constructor Detail

      • TarIterator

        public TarIterator​(org.apache.camel.Exchange exchange,
                           InputStream inputStream)
    • 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>
      • isAllowEmptyDirectory

        public boolean isAllowEmptyDirectory()
      • setAllowEmptyDirectory

        public void setAllowEmptyDirectory​(boolean allowEmptyDirectory)