Package VASSAL.tools
Class URLUtils
java.lang.Object
VASSAL.tools.URLUtils
public class URLUtils extends Object
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Method Summary
Modifier and Type Method Description static URLtoJarURL(File f)Returns a URL corresponding to a JAR file.static URLtoJarURL(String f)Returns a URL corresponding to a JAR file.static URLtoURL(File f)Returns a URL corresponding to a file.static URLtoURL(String f)Returns a URL corresponding to a file.
-
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
-