Package com.jk.core.util
Class JKMachineInfo
java.lang.Object
com.jk.core.util.JKMachineInfo
This class provides utility methods to retrieve information about the
machine's hardware and system details.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
This enum represents different types of hardware information that can be retrieved. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
This method retrieves the serial number of the hard disk.static String
This method retrieves the MAC addresses of network interfaces.static Properties
This method retrieves system information properties.static void
This main method demonstrates the functionality of the class.
-
Method Details
-
getHardDiskSerialNumber
This method retrieves the serial number of the hard disk.- Returns:
- the serial number of the hard disk.
- Throws:
IOException
- if an I/O error occurs while retrieving the serial number.
-
getMacAddress
This method retrieves the MAC addresses of network interfaces.- Returns:
- the MAC addresses of network interfaces.
-
getSystemInfo
This method retrieves system information properties.- Returns:
- the Properties object containing system information.
-
main
This main method demonstrates the functionality of the class.- Parameters:
args
- the command-line arguments.- Throws:
Exception
- if an exception occurs during execution.
-