Java Is Jar File isJar(File file)

Here you can find the source of isJar(File file)

Description

is Jar

License

Apache License

Declaration

private static boolean isJar(File file) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    private static boolean isJar(File file) {
        return existsWithExtension(file, ".jar");
    }/*w ww . ja  va 2s . com*/

    private static boolean existsWithExtension(File file, String extension) {
        return file.isFile() && file.getName().toLowerCase().endsWith(extension);
    }
}

Related

  1. isJar(File file)
  2. isJar(File file)
  3. isJar(final File element)
  4. isJar(InputStream is)