アーカイブ ファイルの更新に truezip バージョン (7.7.9) を使用しています。私がやっている方法は次のとおりです
File entry = new TFile(filepath);
writer = new TFileWriter(entry);
writer.append("MyString");
writer.flush();
long fileSize = entry.length(); // which always gives value as 0
何らかの目的で正確なファイル サイズが必要ですが、これは常に 0 になります。それを取得できる他の方法はありますか。
TFile クラスのドキュメントを読みました\ https://truezip.java.net/apidocs/de/schlichtherle/truezip/file/TFile.html#length() は、それが何をするのかよく理解できませんでした