Java URL from newURL(String url_name)

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

Description

new URL

License

Open Source License

Declaration

public static URL newURL(String url_name) 

Method Source Code

//package com.java2s;
import java.net.MalformedURLException;
import java.net.URL;

public class Main {
    public static URL newURL(String url_name) {
        try {/* www  . j  a  va  2 s .  c o  m*/
            return new URL(url_name);
        } catch (MalformedURLException e) {
            throw new RuntimeException("Malformed URL " + url_name, e);
        }
    }
}

Related

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