Here you can find the source of newUrl(String urlString)
public static URL newUrl(String urlString) throws IOException
//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); } }