Class System
java.lang.Object
io.github.javaezlib.javaez.extensions.System
The system extension, allowing the user to check system info
- Since:
- 1.2
- Author:
- Red050911
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidlockMyPC()Places the user on the sign-in screen without closing any apps.static voidOpens a path in Explorer/Finder/whatever file viewerstatic voidprintAFile(String path) Prints a file using whatever print system your OS usesstatic StringGets the OS name of the one who runs the program.static StringGets the OS name of the one who runs the program.static StringReturns the username of the one who is using the PC
-
Constructor Details
-
System
public System()
-
-
Method Details
-
whatsMyOS
Gets the OS name of the one who runs the program. This info is delivered by the system and may look a bit technical. (Except for Windows)- Returns:
- The system-provided OS name
- Since:
- 1.2
-
whatsMySimplifiedOS
Gets the OS name of the one who runs the program. However, unlikewhatsMyOS()this info is simplified. Ex. Windows Version 10- Returns:
- The simplified OS name (If OS could not be simplified, it will equal
whatsMyOS()) - Since:
- 1.2
-
whoIsUsingThePC
Returns the username of the one who is using the PC- Returns:
- who is using the PC
- Since:
- 1.2
-
lockMyPC
public static void lockMyPC()Places the user on the sign-in screen without closing any apps. (You have to be on Windows for this to work)- Since:
- 1.2
-
openAPath
Opens a path in Explorer/Finder/whatever file viewer- Parameters:
path- the path to open- Since:
- 1.2
-
printAFile
Prints a file using whatever print system your OS uses- Parameters:
path- the path of the file to print- Since:
- 1.2
-