Package snap.web
Class PathUtils
java.lang.Object
snap.web.PathUtils
Utilities for paths.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns a path with a filename or relative path added.static String
getNormalized
(String aPath) Returns the path in a normal format (strips any trailing file separators).static String
Returns a path with a filename or relative path added.static String
getRelative
(String aPath, String aChildPath) Returns a path with a filename or relative path added.static String
stripTrailingSlash
(String aPath) Strips any trailing separator from end.
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
getNormalized
Returns the path in a normal format (strips any trailing file separators). -
getParent
Returns a path with a filename or relative path added. -
getChild
Returns a path with a filename or relative path added. -
getRelative
Returns a path with a filename or relative path added. -
stripTrailingSlash
Strips any trailing separator from end.
-