public class Systems
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Systems.OS |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_SEPARATOR |
static java.lang.String |
OPERATING_SYSTEM |
static java.lang.String |
USER_DIRECTORY |
static java.lang.String |
USER_NAME |
static java.lang.String |
WORKING_DIRECTORY |
Constructor and Description |
---|
Systems() |
Modifier and Type | Method and Description |
---|---|
static void |
captureScreen()
Capture screen the with the name screenshot.png
|
static void |
captureScreen(java.lang.String fileName)
Capture screen with the input string as file name
|
static java.lang.String |
getDesktop() |
static java.lang.String |
getIP()
Get IP of the System.
|
static Systems.OS |
getOs()
Get OS type of the System.
|
static void |
pause()
Pause the system.
|
public static final java.lang.String FILE_SEPARATOR
public static final java.lang.String USER_NAME
public static final java.lang.String USER_DIRECTORY
public static final java.lang.String WORKING_DIRECTORY
public static final java.lang.String OPERATING_SYSTEM
public static java.lang.String getDesktop()
public static java.lang.String getIP()
public static Systems.OS getOs()
public static void pause()
public static void captureScreen() throws java.lang.Exception
java.lang.Exception
- if error occurspublic static void captureScreen(java.lang.String fileName) throws java.lang.Exception
fileName
- a given file namejava.lang.Exception
- if error occursCopyright © 2017. All Rights Reserved.