Class TarIterator
java.lang.Object
org.apache.camel.dataformat.tarfile.TarIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<org.apache.camel.Message>
The Iterator which can go through the TarArchiveInputStream according to TarArchiveEntry Based on ZipIterator from
camel-zipfile component
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHeader where thisTarIteratorwill insert the current entry's file name. -
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
-
Field Details
-
TARFILE_ENTRY_NAME_HEADER
Header where thisTarIteratorwill insert the current entry's file name.- See Also:
-
-
Constructor Details
-
TarIterator
-
-
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
-
isAllowEmptyDirectory
public boolean isAllowEmptyDirectory() -
setAllowEmptyDirectory
public void setAllowEmptyDirectory(boolean allowEmptyDirectory)
-