Package fr.formiko.usuel
Class Os
java.lang.Object
fr.formiko.usuel.Os
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.
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetARCH()
byte
getId()
private static boolean
iniIsMac()
Check if OS is MacOs.private static boolean
Check if OS is Unix (linux).private static boolean
Check if OS is WindowsOs.void
iniOs()
Save the OS in the int id.boolean
isLinux()
boolean
isMac()
boolean
void
setId(byte x)
toString()
Return the name of the OS.
-
Field Details
-
id
private byte idSave OS.
0=linux, 1=Windows, 2=Mac, -1=unknowOS -
OS
-
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
-
toString
Return the name of the OS. -
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.
-