org.apache.any23.util
Class URLUtils

java.lang.Object
  extended by 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
static boolean isOnline(String url)
          Verifies if the specified URL is reachable online.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - if url is malformed.


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.