org.xml.graphics.helpers
Class URLBuilder
java.lang.Object
org.xml.graphics.helpers.URLBuilder
public class URLBuilder
- extends java.lang.Object
Constructs URLs from Strings (filenames or URLs).
- Author:
- Jeremias Maerki
|
Method Summary |
static java.io.File |
toFile(java.lang.String spec)
|
static java.net.URL |
toFileURL(java.lang.String spec)
|
static java.net.URL |
toURL(java.lang.String spec)
|
static java.net.URL |
toURL(java.net.URL baseURL,
java.lang.String spec)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLBuilder
public URLBuilder()
toFile
public static java.io.File toFile(java.lang.String spec)
toFileURL
public static java.net.URL toFileURL(java.lang.String spec)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
toURL
public static java.net.URL toURL(java.lang.String spec)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
toURL
public static java.net.URL toURL(java.net.URL baseURL,
java.lang.String spec)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
Copyright © 2004-2005 Jeremias Märki. All rights reserved.