Package VASSAL.tools
Class URLUtils
java.lang.Object
VASSAL.tools.URLUtils
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Method Details
-
toURL
Returns a URL corresponding to a file.- Parameters:
f
- the file for which the URL is wanted- Returns:
- the URL of the file
- Throws:
MalformedURLException
- if the URL can't be created
-
toURL
Returns a URL corresponding to a file.- Parameters:
f
- the file for which the URL is wanted- Returns:
- the URL of the file
- Throws:
MalformedURLException
- if the URL can't be created
-
toJarURL
Returns a URL corresponding to a JAR file.- Parameters:
f
- the JAR file for which the URL is wanted- Returns:
- the URL of the JAR file
- Throws:
MalformedURLException
- if the URL can't be created
-
toJarURL
Returns a URL corresponding to a JAR file.- Parameters:
f
- the JAR file for which the URL is wanted- Returns:
- the URL of the JAR file
- Throws:
MalformedURLException
- if the URL can't be created
-