public final class URL2String
extends java.lang.Object
URL object to and from a String representation. Support for interconversion of relative and absolute forms and expansion of macros is implemented here. The terms that java.net.URL uses for the parts of an URL are -- protocol://userinfo@host:port/path?query#ref| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
toString(java.net.URL url)
Takes an  
url and returns all its parts as a String. | 
static java.net.URL | 
toURL(java.lang.String urlString)
Takes a  
String obtained by the call to the toString method and builds up an URL. | 
public static java.lang.String toString(java.net.URL url)
url and returns all its parts as a String. The protocol must be specified in an absolute URI.public static java.net.URL toURL(java.lang.String urlString)
String obtained by the call to the toString method and builds up an URL.