public static boolean isJarFileURL ( URL url ) { return ( URL_PROTOCOL_FILE . equals ( url . getProtocol ( ) ) && url . getPath ( ) . toLowerCase ( ) . endsWith ( JAR_FILE_EXTENSION ) ) ; }
Determine whether the given URL points to a jar file itself that is has protocol file and ends with the . jar extension .