1

ライブラリに強制的にファイルを強制的に閉じさせ、他のプロセスがさらに変更できるようにする方法を教えてください。現在、ファイルが以下のコード スニペットによって処理されるとき、ファイルはアプリケーションによって保持され、変更できません。

            //input represents FileObject zip file         
            FileObject zip = fsManager.createFileSystem(input); //auxiliary variable used for extracting zip file content (input)
            tmpDir.copyFrom(zip, new AllFileSelector());
            zip.close(); // it's closed properly
           // input.close() or ((AbstractFileSystem)input.getFileSystem()).close() doesn't help to release the lock
4

0 に答える 0