Java URL Value Check isJarURL(URL url)

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

Description

Returns true if specified URL is a jar: URL, otherwise returns false

License

Open Source License

Declaration

public static boolean isJarURL(URL url) 

Method Source Code

//package com.java2s;

import java.net.URL;

public class Main {
    /**/* w w w .j  a v  a2  s. c  o  m*/
     * Returns <code>true</code> if specified URL is a <tt>jar:</tt> URL,
     * otherwise returns <code>false</code>
     */
    public static boolean isJarURL(URL url) {
        return "jar".equals(url.getProtocol());
    }
}

Related

  1. isJarFile(URLConnection connection)
  2. isJarFileURL(URL url)
  3. isJarURL(URL url)
  4. isJarURL(URL url)
  5. isJarURL(URL url)
  6. isJarURL(URL url)
  7. isJarURL(URL url)
  8. isJBoss5Url(URL fileUrl)
  9. isLegalURL(final String url)