Here you can find the source of isUrl(String str)
public static boolean isUrl(String str)
//package com.java2s; public class Main { public static boolean isUrl(String str) { if (str == null) { return false; }/*from ww w .j av a 2 s. co m*/ if (str.startsWith("http")) { return true; } return false; } }