|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.tools.URLBuilder
This utility class is used to build URLs from Strings. The String can be normal URLs but also just filenames. The filenames get converted to a file URL.
Constructor Summary | |
URLBuilder()
|
Method Summary | |
static java.net.URL |
buildURL(java.lang.String spec)
Build an URL based on a String. |
static java.net.URL |
buildURL(java.net.URL baseURL,
java.lang.String spec)
Build an URL based on a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public URLBuilder()
Method Detail |
public static java.net.URL buildURL(java.lang.String spec) throws java.net.MalformedURLException
spec
- A URL or a filename
java.net.MalformedURLException
- If spec cannot be converted to a URL.public static java.net.URL buildURL(java.net.URL baseURL, java.lang.String spec) throws java.net.MalformedURLException
baseURL
- Base URL for relative pathsspec
- A URL or a filename
java.net.MalformedURLException
- If spec cannot be converted to a URL.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |