Here you can find the source of isUrl(String value)
public static boolean isUrl(String value)
//package com.java2s; import java.net.MalformedURLException; public class Main { public static boolean isUrl(String value) { try {/*from ww w .ja va 2 s .co m*/ new java.net.URL(value); } catch (MalformedURLException e) { return false; } return true; } }