Package com.jgcomptech.tools
Class HWInfo.Storage
- java.lang.Object
-
- com.jgcomptech.tools.HWInfo.Storage
-
- Enclosing class:
- HWInfo
public static final class HWInfo.Storage extends java.lang.Object
Returns information about the system storage.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getDriveFreeSpace(char driveLetter)
Returns the free space of the specified drive by drive letter, returns "N/A" if drive doesn't exist.static java.lang.String
getDriveSize(char driveLetter)
Returns the drive size of the specified drive by drive letter, returns "N/A" if drive doesn't exist.static java.lang.String
getSystemDriveFreeSpace()
Returns the free space of drive of the drive Windows is installed on.static java.lang.String
getSystemDrivePath()
Returns the file path to the root of the drive Windows is installed on.static java.lang.String
getSystemDriveSize()
Returns the drive size of the drive Windows is installed on.static java.lang.String
getWindowsPath()
Returns the file path to the Windows directory.
-
-
-
Method Detail
-
getSystemDrivePath
public static java.lang.String getSystemDrivePath()
Returns the file path to the root of the drive Windows is installed on.- Returns:
- System drive file path as string
-
getWindowsPath
public static java.lang.String getWindowsPath()
Returns the file path to the Windows directory.- Returns:
- Windows directory file path as string
-
getSystemDriveSize
public static java.lang.String getSystemDriveSize()
Returns the drive size of the drive Windows is installed on.- Returns:
- System drive size as string
-
getDriveSize
public static java.lang.String getDriveSize(char driveLetter)
Returns the drive size of the specified drive by drive letter, returns "N/A" if drive doesn't exist.- Parameters:
driveLetter
- Drive letter of drive to get the size of- Returns:
- Drive size of the specified drive letter
-
getSystemDriveFreeSpace
public static java.lang.String getSystemDriveFreeSpace()
Returns the free space of drive of the drive Windows is installed on.- Returns:
- System drive free space as string
-
getDriveFreeSpace
public static java.lang.String getDriveFreeSpace(char driveLetter)
Returns the free space of the specified drive by drive letter, returns "N/A" if drive doesn't exist.- Parameters:
driveLetter
- Drive letter of drive to get the free space of- Returns:
- Drive free space of the specified drive letter
-
-