コード例 #1
0
ファイル: ZipFileSystem.java プロジェクト: DevFactory/cotta
 public void close() throws TIoException {
   try {
     file.close();
   } catch (IOException e) {
     throw new TIoException(TPath.parse("/"), "Cannot close jar file", e);
   }
 }
コード例 #2
0
ファイル: ZipFileSystem.java プロジェクト: DevFactory/cotta
 public static FileSystem readOnlyZipFileSystem(File jarFile) throws TIoException {
   ZipFileSystem zipFileSystem;
   try {
     zipFileSystem = new ZipFileSystem(jarFile);
   } catch (IOException e) {
     throw new TIoException(
         TPath.parse("/"), "Error opening zip file <" + jarFile.getAbsolutePath() + ">", e);
   }
   return ControlledFileSystem.readOnlyFileSystem(zipFileSystem);
 }