Java Is Jar File isJarFile(File f)

Here you can find the source of isJarFile(File f)

Description

is Jar File

License

Open Source License

Declaration

public static boolean isJarFile(File f) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static boolean isJarFile(File f) {
        if (f != null) {
            if (f.getName().contains(".jar") || f.getAbsolutePath().contains(".jar")) {
                return true;
            }// www  .  j  a  va2s.  c o m
        }
        return false;
    }
}

Related

  1. isJar(File file)
  2. isJar(File file)
  3. isJar(final File element)
  4. isJar(InputStream is)
  5. isJar(String file)
  6. isJarFile(File file)
  7. isJarFile(File jar)