Java URL from newUrl(String urlString)

Here you can find the source of newUrl(String urlString)

Description

new Url

License

LGPL

Declaration

public static URL newUrl(String urlString) throws IOException 

Method Source Code


//package com.java2s;
/*/*from www.  j  a  v  a  2  s.  c om*/
 * This file is part of VirtualFile.
 *
 * Copyright 2016 by Bernd Riedl <bernd.riedl@gmail.com>
 *
 * Licensed under GNU Lesser General Public License 3.0 or later.
 * Some rights reserved. See COPYING, AUTHORS.
 */

import java.io.IOException;

import java.net.URL;

public class Main {
    public static URL newUrl(String urlString) throws IOException {
        return new URL(urlString);
    }

    public static URL newUrl(URL context, String spec) throws IOException {
        return new URL(context, spec);
    }
}

Related

  1. newURL(CharSequence urlString)
  2. newUrl(String href)
  3. newURL(String location)
  4. newURL(String url)
  5. newURL(String url_name)