解决Multi input/output stream coders are not yet supported(org.apache.commons.compress)

1
2
3
4
5
6
7
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)

 之前代码:

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

 修正:

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

 

posted @   锐洋智能  阅读(301)  评论(0编辑  收藏  举报
编辑推荐:
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· Obsidian + DeepSeek:免费 AI 助力你的知识管理,让你的笔记飞起来!
· 解决跨域问题的这6种方案,真香!
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· Windows 提权-UAC 绕过
历史上的今天:
2013-11-23 DB2与Sybase/Oracle/Informix的比较
2013-11-23 Spring3.1.2与Hibernate4.1.8整合
2013-11-23 c3p0、dbcp、proxool、BoneCP比较
点击右上角即可分享
微信分享提示