public final class OS extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_LINUX
True if OS is Linux
|
static boolean |
IS_OSX
True if OS is OSX
|
static boolean |
IS_UNIX
True if OS is Unix (Unix || AIX || Linux || OSX)
|
static boolean |
IS_WINDOWS
True if OS is windows
|
static String |
LN
Line Separator string.
|
static String |
OS_NAME
The name of the OS
|
Modifier and Type | Method and Description |
---|---|
static String |
separators(String path)
Convert path separators to the System path separators.
|
public static final String OS_NAME
public static final boolean IS_WINDOWS
public static final boolean IS_OSX
public static final boolean IS_LINUX
public static final boolean IS_UNIX
public static final String LN
Note: For Java 1.7 or newer, use System.lineSeparator()
Copyright © 1995–2017 Mort Bay Consulting. All rights reserved.