public final class EnvironmentHelper extends Object
Modifier and Type | Method | Description |
---|---|---|
static String |
getNewLine() |
Get the line separator.
|
static RuntimeDialect |
getRuntimeDialect() |
Get VM runtime depending functionality.
|
static boolean |
isAndroid() |
Determine whether running on Android.
|
static boolean |
isAtLeastJava9() |
Determine whether running on Java 9 or newer.
|
static boolean |
isWindows() |
Determine whether running on Windows.
|
static void |
makeDirectories(File file) |
Make all nonexistent directories.
|
public static boolean isAtLeastJava9()
true
if Java version is 9 or higher, false
if notpublic static boolean isAndroid()
true
if operating system is Android, false
if notpublic static boolean isWindows()
true
if operating system is Windows, false
if notpublic static RuntimeDialect getRuntimeDialect()
public static String getNewLine()
public static void makeDirectories(File file)
file
- Path to a fileCopyright © 2019. All rights reserved.