java.lang.Object
io.smallrye.common.resource.ResourceUtils
Miscellaneous resource-related utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringAn efficient relative path string canonicalizer which avoids copying and allocation to the maximum possible extent.
-
Method Details
-
canonicalizeRelativePath
An efficient relative path string canonicalizer which avoids copying and allocation to the maximum possible extent. The canonical path has no.or..segments, does not contain consecutive/, and does not begin or end with a/.- Parameters:
path- the path name (must not benull)- Returns:
- the canonical equivalent path (not
null)
-