Class Utility


  • public class Utility
    extends Object
    Utility methods for this package.
    • Method Detail

      • isOsUnix

        public static boolean isOsUnix()
        Test for Unix (to include MacOS), vice Windows.
      • isOsWindows

        public static boolean isOsWindows()
        Test for Windows, vice Unix (to include MacOS).
      • calculatePath

        public static String calculatePath​(File f,
                                           File base)
      • jsonEscape

        public static String jsonEscape​(String s)
        Escapes the string as a JSON value.
        Parameters:
        s - raw string that we want to set as JSON value.
        Returns:
        unquoted JSON escaped string