Object
PrettyPathConverter

public class PrettyPathConverter extends Object
Utility class for converting paths to a more user-friendly representation.
  • Method Details

    • prettyPath

      public static String prettyPath(String path)
      Converts a string path to either a normalized absolute-path or relative-path depending on which is prettier to the user.
      Parameters:
      path - the path as a String
      Returns:
      the prettified path as a String
    • prettyPath

      public static String prettyPath(Path path)
      Converts a Path to either a normalized absolute-path or relative-path depending on which is prettier to the user.
      Parameters:
      path - the Path to prettify
      Returns:
      the prettified path as a String