Package org.apache.any23.util
Class URLUtils
- java.lang.Object
-
- org.apache.any23.util.URLUtils
-
public class URLUtils extends Object
Contains general utility functions for handling URLs.- Author:
- Michele Mostarda (mostarda@fbk.eu)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isOnline(String url)
Verifies if the specified URL is reachable online.
-
-
-
Method Detail
-
isOnline
public static boolean isOnline(String url) throws MalformedURLException
Verifies if the specified URL is reachable online.- Parameters:
url
- input URL.- Returns:
true
if the resource can be accessed,false
otherwise.- Throws:
MalformedURLException
- ifurl
is malformed.
-
-