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 URL
toJarURL(File f)
Returns a URL corresponding to a JAR file.static URL
toJarURL(String f)
Returns a URL corresponding to a JAR file.static URL
toURL(File f)
Returns a URL corresponding to a file.static URL
toURL(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
-