gpt4 book ai didi

java - 使用 TrueZip 将文件附加到 zip

转载 作者:行者123 更新时间:2023-11-30 09:39:15 32 4
gpt4 key购买 nike

我想使用 TrueZip 库将文件附加到现有存档(不是通过解包、添加文件和重新打包——新版本应该有这个 功能),但我觉得理解 API 有点困难。能否请比我知识渊博的人用几行建议如何做到这一点?

最佳答案

Google 是您的 friend :

class MyApplication extends TApplication {

@Override
protected void setup() {
// This should obtain the global configuration.
TConfig config = TConfig.get();
// Set FsOutputOption.GROW for appending-to rather than reassembling an
// archive file.
config.setOutputPreferences(
config.getOutputPreferences.set(FsOutputOption.GROW));
}

...
}

关于java - 使用 TrueZip 将文件附加到 zip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9889629/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com