Java URL Value Check isJarURL(URL url)

Here you can find the source of isJarURL(URL url)

Description

is Jar URL

License

Open Source License

Parameter

Parameter Description
url a parameter

Declaration

public static boolean isJarURL(URL url) 

Method Source Code

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

import java.net.URL;

public class Main {
    /**//www.  java  2  s . co  m
     * 
     */
    public static final String URL_PROTOCOL_JAR = "jar";

    /**
     * 
     * @param url
     * @return
     */
    public static boolean isJarURL(URL url) {
        return URL_PROTOCOL_JAR.equals(url.getProtocol());
    }
}

Related

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