CommonsVFS2ライブラリを使用してzipファイルを作成したいと思います。file
プレフィックスを使用するときにファイルをコピーする方法を知っていますが、zip
ファイルの書き込みと読み取りは実装されていません。
fileSystemManager.resolveFile("path comes here")
zip:/some/file.zip
-file.zipが存在しないzipファイルであるときにパスを試行すると、メソッドが失敗します。既存のファイルを解決できますが、存在しない新しいファイルは失敗します。
では、その新しいzipファイルを作成するにはどうすればよいでしょうか。createFile()はサポートされておらず、呼び出される前にFileObjectを作成できないため、使用できません。
通常の方法は、そのresolveFileを使用してFileObjectを作成してから、オブジェクトに対してcreateFileを呼び出すことです。