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