org.omnaest.utils.download
Class URIHelper

java.lang.Object
  extended by org.omnaest.utils.download.URIHelper

public class URIHelper
extends Object


Constructor Summary
URIHelper()
           
 
Method Summary
static URI createURI(String scheme, String host, String path, String query)
          Creates a new uri instance with the given parameters.
static URL getURLfromURI(URI uri)
          Returns an url for a given uri if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIHelper

public URIHelper()
Method Detail

createURI

public static URI createURI(String scheme,
                            String host,
                            String path,
                            String query)
Creates a new uri instance with the given parameters.

Parameters:
scheme -
host -
path -
query -
Returns:
See Also:
URI#URI(String, String, String, String, String))

getURLfromURI

public static URL getURLfromURI(URI uri)
Returns an url for a given uri if possible. Otherwise null is returned.

Parameters:
uri -
Returns:


Copyright © 2011. All Rights Reserved.