public class UrlFactory extends Object
Modifier and Type | Method and Description |
---|---|
static void |
disconnect(URLConnection connection)
Disconnect.
|
static URL |
getUrl(String urlStr)
Gets the URL Object.
|
public static URL getUrl(String urlStr) throws MalformedURLException
This method has been created because it is not possible to call URL.setURLStreamHandlerFactory more than once.
urlStr
- the URL StringMalformedURLException
- the malformed URL exceptionpublic static void disconnect(URLConnection connection) throws IOException
connection
- the URL connectionIOException
- Signals that an I/O exception has occurred.Copyright © 2015. All Rights Reserved.