Class PathUtils


  • public class PathUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PathUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertPathForOS​(java.lang.String path)
      This method converts all \ or / chars to File.separatorChar.
      static java.lang.String getDirectory​(java.lang.String file, int level)  
      • 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

      • convertPathForOS

        public static java.lang.String convertPathForOS​(java.lang.String path)
        This method converts all \ or / chars to File.separatorChar.
        Parameters:
        path -
        Returns:
        converted path
      • getDirectory

        public static java.lang.String getDirectory​(java.lang.String file,
                                                    int level)