Tag Archives: Multi input/output stream coders are not yet supported error

[Modified] Multi input/output stream coders are not yet supported (org.apache.commons.compress)

java.io.IOException: Multi input/output stream coders are not yet supported
	at org.apache.commons.compress.archivers.sevenz.SevenZFile.buildDecoderStack(SevenZFile.java:1796)
	at org.apache.commons.compress.archivers.sevenz.SevenZFile.reopenFolderInputStream(SevenZFile.java:1669)
	at org.apache.commons.compress.archivers.sevenz.SevenZFile.buildDecodingStream(SevenZFile.java:1625)
	at org.apache.commons.compress.archivers.sevenz.SevenZFile.getNextEntry(SevenZFile.java:414)
	at reyo.sdk.utils.file.zip.compress.ZipUtils.read7zFile(ZipUtils.java:148)
	at reyo.sdk.utils.file.zip.compress.ZipUtils.main(ZipUtils.java:270)

Previous code:

while ((entry = zIn.getNextEntry()) != null) {}

Correction:

for (SevenZArchiveEntry entry : zIn.getEntries()) {}