public class OSUtils
extends java.lang.Object
| Constructor and Description |
|---|
OSUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanDirectory(java.io.File directory)
Delete all contents from the given directory or create it if not existing.
|
static boolean |
is64bitsOS()
Check whether the OS is 64 bits.
|
static java.io.File |
writeTextualFile(java.lang.String fileName,
java.lang.String contents)
Create a file with the given name and write the given (textual) contents on it.
|
public static java.io.File writeTextualFile(java.lang.String fileName,
java.lang.String contents)
fileName - The name of the file to be created (possibly a path).contents - The contents to be written.public static void cleanDirectory(java.io.File directory)
directory - The File object representing the directory.public static boolean is64bitsOS()