Beispiel #1
0
 public void close() throws TIoException {
   try {
     file.close();
   } catch (IOException e) {
     throw new TIoException(TPath.parse("/"), "Cannot close jar file", e);
   }
 }
Beispiel #2
0
 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);
 }