Here you can find the source of getURL(String schema, String host, String path)
Parameter | Description |
---|---|
schema | a parameter |
host | a parameter |
path | a parameter |
public static URL getURL(String schema, String host, String path)
//package com.java2s; import java.net.MalformedURLException; import java.net.URL; public class Main { /**//from w w w .j a va 2 s . c o m * @param schema * @param host * @param path * @return */ public static URL getURL(String schema, String host, String path) { URL url = null; try { url = new URL(schema, host, "/" + path); } catch (MalformedURLException e) { } return url; } }