Java URL Value Check isJarFile(URLConnection connection)

Here you can find the source of isJarFile(URLConnection connection)

Description

is Jar File

License

Open Source License

Declaration

private static boolean isJarFile(URLConnection connection) 

Method Source Code

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

import java.net.URLConnection;

public class Main {
    public static final String JAR_EXTENSION = ".jar";

    private static boolean isJarFile(URLConnection connection) {
        return connection.getURL().toString().endsWith(JAR_EXTENSION);
    }/* w w  w . jav  a2s  .co m*/
}

Related

  1. isHttpUrl(URL url)
  2. isHttpURLAvailable(final String url)
  3. isInternetReachable(String url)
  4. isJar(URL url)
  5. isJarFile(URL url)
  6. isJarFileURL(URL url)
  7. isJarURL(URL url)
  8. isJarURL(URL url)
  9. isJarURL(URL url)