Class PathUtils


  • public class PathUtils
    extends java.lang.Object
    Utilities for paths.
    • Constructor Summary

      Constructors 
      Constructor Description
      PathUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getChild​(java.lang.String aPath, java.lang.String aChildPath)
      Returns a path with a filename or relative path added.
      static java.lang.String getNormalized​(java.lang.String aPath)
      Returns the path in a normal format (strips any trailing file separators).
      static java.lang.String stripTrailingSlash​(java.lang.String aPath)
      Strips any trailing separator from end.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathUtils

        public PathUtils()
    • Method Detail

      • getNormalized

        public static java.lang.String getNormalized​(java.lang.String aPath)
        Returns the path in a normal format (strips any trailing file separators).
      • getChild

        public static java.lang.String getChild​(java.lang.String aPath,
                                                java.lang.String aChildPath)
        Returns a path with a filename or relative path added.
      • stripTrailingSlash

        public static java.lang.String stripTrailingSlash​(java.lang.String aPath)
        Strips any trailing separator from end.