public class OSUtils
extends java.lang.Object
Approvals-Java can be executed from all kind of environments, which also means all kind of OS (at least Windows, Linux, Mac OSX).
That means some operations will have to be handled in different ways depending on which Operating System it is executed on.
That class aims at providing helper methods allowing to deal with OS specific operations.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
isLinux
Indicates if the current operating system is included in the Linux Family (all distributions / versions included).
|
static boolean |
isWindows
Indicates if the current operating system is included in the Windows Family (all versions included).
|
| Constructor and Description |
|---|
OSUtils() |
public static boolean isWindows
Indicates if the current operating system is included in the Windows Family (all versions included).
public static boolean isLinux
Indicates if the current operating system is included in the Linux Family (all distributions / versions included).
Copyright © 2018 Write Them First!. All rights reserved.