Java URL is Absolute isAbsoluteURL(String url)

Here you can find the source of isAbsoluteURL(String url)

Description

is Absolute URL

License

LGPL

Declaration

public static boolean isAbsoluteURL(String url) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static boolean isAbsoluteURL(String url) {
        String urlLC = url.toLowerCase().trim();
        return urlLC.startsWith("http://") || urlLC.startsWith("https://") || urlLC.startsWith("ftp://")
                || urlLC.startsWith("file://") || urlLC.startsWith("//");
    }//  ww w  .  j av  a2s. c o  m
}

Related

  1. isAbsoluteUrl(String imageUrl)
  2. isAbsoluteUrl(String ref)
  3. isAbsoluteURL(String str)
  4. isAbsoluteURL(String url)
  5. isAbsoluteUrl(String url)
  6. isAbsoluteURL(String url)