Package org.spongepowered.asm.util
Class Files
java.lang.Object
org.spongepowered.asm.util.Files
Utility class for file operations
-
Method Summary
-
Method Details
-
toFile
Convert a URL to a file but handle a corner case with UNC paths which do not parse correctly.- Parameters:
url- URL to convert- Returns:
- File
- Throws:
URISyntaxException- if the URL cannot be converted to a URI
-
toFile
Convert a URI to a file but handle a corner case with UNC paths which do not parse correctly.- Parameters:
uri- URI to convert- Returns:
- File
-