解决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)
之前代码:
while ((entry = zIn.getNextEntry()) != null) {}
修正:
for (SevenZArchiveEntry entry : zIn.getEntries()) {}