Class OS


  • public class OS
    extends java.lang.Object
    Author:
    J. H. S.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isWindows()  
      static void launchBrowser​(java.lang.String url)  
      static void launchPath​(java.lang.String path)
      Opens a file a directory with an appropriate program.
      static boolean supportsLaunchPath()  
      • Methods inherited from class java.lang.Object

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

      • isWindows

        public static boolean isWindows()
      • launchBrowser

        public static void launchBrowser​(java.lang.String url)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • launchPath

        public static void launchPath​(java.lang.String path)
                               throws java.io.IOException
        Opens a file a directory with an appropriate program.
        Throws:
        java.io.IOException
      • supportsLaunchPath

        public static boolean supportsLaunchPath()