Java URL from newURL(String url)

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

Description

new URL

License

LGPL

Declaration

public static URL newURL(String url) 

Method Source Code

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

import java.net.URL;

public class Main {
    public static URL newURL(String url) {
        try {/*from  ww w .  j a va 2s. c  o m*/
            return new URL(url);
        } catch (Exception e) {
            return null;
        }
    }
}

Related

  1. makeURL(String urlstr)
  2. makeURL(String[] URLStrings)
  3. newURL(CharSequence urlString)
  4. newUrl(String href)
  5. newURL(String location)
  6. newURL(String url_name)
  7. newUrl(String urlString)