Java Jar Usage safeClose(JarFile jf)

Here you can find the source of safeClose(JarFile jf)

Description

safe Close

License

Open Source License

Declaration

public static void safeClose(JarFile jf) 

Method Source Code

//package com.java2s;

import java.util.jar.JarFile;

public class Main {
    public static void safeClose(JarFile jf) {
        try {// ww  w. j  a  va  2  s .  com
            if (jf != null) {
                jf.close();
            }
        } catch (Exception e) {

        }
    }
}

Related

  1. isSet(Attributes attributes, String name)
  2. listFiles(JarFile jarFile, String path)
  3. process(Object obj)
  4. processJarFile(String f)
  5. recordFactoryDefault(String className, Attributes attributes)
  6. scanJarPackageClass(List> classes, String packageDirName, String packageName, JarFile jar, boolean recursive)