Here you can find the source of isAbsoluteURI(String uri)
public static boolean isAbsoluteURI(String uri)
//package com.java2s; // under the terms of the GNU Lesser General Public License as published public class Main { public static boolean isAbsoluteURI(String uri) { // TODO: make this more sophisticated if needed return uri.matches("\\w+://.*"); }/*from ww w . j a v a 2 s .c om*/ }