Package com.regnosys.rosetta.common.util
Class UrlUtils
java.lang.Object
com.regnosys.rosetta.common.util.UrlUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBaseFileName(URL url) static StringgetFileExtension(URL url) static StringgetFileName(URL url) static URLstatic Readerstatic URLstatic Pathstatic StringtoPortableString(Path path) Path.toString() does not work well on Windows, this method provides toString() that works across platformsstatic URL
-
Field Details
-
PORTABLE_FILE_SEPARATOR
- See Also:
-
-
Constructor Details
-
UrlUtils
public UrlUtils()
-
-
Method Details
-
openURL
- Throws:
IOException
-
getFileName
-
getBaseFileName
-
getFileExtension
-
getParent
-
resolve
-
toPath
-
toUrl
-
toPortableString
Path.toString() does not work well on Windows, this method provides toString() that works across platforms
-