1
2
3
4
5
6
7 package org.backsource.utils.resource;
8
9 import java.net.URL;
10 import java.net.MalformedURLException;
11 /***
12 * Factory to use for URI:s that is URL:s backed by a URLStreamHandler.
13 *
14 *
15 * @author Peter Antman
16 * @version $Revision: 1.1.1.1 $
17 */
18
19 public class ValidURLFactory implements URLFactory {
20 /***
21 * Get a URL from uri without any translations.
22 */
23 public URL getURL(URI uri) throws MalformedURLException {
24 return new URL(uri.toExternalForm());
25 }
26
27 }