public class SystemInfo
extends java.lang.Object
Constructor and Description |
---|
SystemInfo() |
Modifier and Type | Method and Description |
---|---|
static long |
getFreeDiskSpace(java.io.File file)
Retrieves the free disk space for the disk containing the given file on Windows, OS X and Linux.
|
static long |
getPhysicalMemory()
Retrieves the physical memory on Windows, OS X and Linux.
|
public static long getFreeDiskSpace(java.io.File file)
file
- the file or directory to check the disk space forpublic static long getPhysicalMemory()