jaxg 0.1dev

org.xml.graphics.helpers
Class URLBuilder

java.lang.Object
  extended by org.xml.graphics.helpers.URLBuilder

public class URLBuilder
extends java.lang.Object

Constructs URLs from Strings (filenames or URLs).

Author:
Jeremias Maerki

Constructor Summary
URLBuilder()
           
 
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
 

Constructor Detail

URLBuilder

public URLBuilder()
Method Detail

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

jaxg 0.1dev

Copyright © 2004-2005 Jeremias Märki. All rights reserved.