Class Os

java.lang.Object
fr.formiko.usuel.Os

public class Os extends Object
Do OS search.
id (var that represent OS) can be used to do special actions like graphics action that are need to work on a specific OS as Windows that do weard thing with java Panel.
Author:
Hydrolien
  • Field Details

    • id

      private byte id
      Save OS.
      0=linux, 1=Windows, 2=Mac, -1=unknowOS
    • OS

      protected static String OS
    • ARCH

      private static String ARCH
  • Constructor Details

    • Os

      public Os()
  • Method Details

    • getId

      public byte getId()
    • setId

      public void setId(byte x)
    • isWindows

      public boolean isWindows()
    • isLinux

      public boolean isLinux()
    • isMac

      public boolean isMac()
    • getARCH

      public String getARCH()
    • toString

      public String toString()
      Return the name of the OS.
      Overrides:
      toString in class Object
    • iniIsWindows

      private static boolean iniIsWindows()
      Check if OS is WindowsOs.
    • iniIsMac

      private static boolean iniIsMac()
      Check if OS is MacOs.
    • iniIsUnix

      private static boolean iniIsUnix()
      Check if OS is Unix (linux).
    • iniOs

      public void iniOs()
      Save the OS in the int id.