Package VASSAL.tools.io
Class FileUtils
java.lang.Object
VASSAL.tools.io.FileUtils
Custom Implementation of FileUtils.byteCountToDisplaySize to fix rounding bug
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
byteCountToDisplaySize
(long fileSize) Formats a file's size into a human readable formatstatic String
byteCountToDisplaySize
(BigInteger fileSize) Formats a file's size into a human readable format
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
byteCountToDisplaySize
Formats a file's size into a human readable format- Parameters:
fileSize
- the file's size as BigInteger- Returns:
- the size as human readable string
-
byteCountToDisplaySize
Formats a file's size into a human readable format- Parameters:
fileSize
- the file's size as long- Returns:
- the size as human readable string
-