com.ebasetech.ufs.utility
Class URLUtil

java.lang.Object
  extended bycom.ebasetech.ufs.utility.URLUtil

public class URLUtil
extends java.lang.Object


Constructor Summary
URLUtil()
           
 
Method Summary
static java.net.URI getAbsoluteURI(java.net.URI base, java.lang.String literalURI)
           
static java.net.URL makeURL(java.lang.String urlText, boolean uri)
          make a url from a file or http
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLUtil

public URLUtil()
Method Detail

makeURL

public static java.net.URL makeURL(java.lang.String urlText,
                                   boolean uri)
                            throws java.net.MalformedURLException
make a url from a file or http

Parameters:
urlText -
uri - make URI compatible URL
Returns:
a url
Throws:
java.net.MalformedURLException

getAbsoluteURI

public static java.net.URI getAbsoluteURI(java.net.URI base,
                                          java.lang.String literalURI)
                                   throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException