public JarInputStream getJarFileStream(File file) throws IOException {
    return new JarInputStream(new FileInputStream(file));
  }
Get a new jar file stream from the given file.

@param file  the file

@return a new jar file stream
ambari-server/src/main/java/org/apache/ambari/server/view/ViewArchiveUtility.java