Package VASSAL.tools.io
Class FileUtils
java.lang.Object
VASSAL.tools.io.FileUtils
public class FileUtils extends Object
Custom Implementation of FileUtils.byteCountToDisplaySize to fix rounding bug
-
Constructor Summary
Constructors Constructor Description FileUtils() -
Method Summary
Modifier and Type Method Description static StringbyteCountToDisplaySize(long fileSize)Formats a file's size into a human readable formatstatic StringbyteCountToDisplaySize(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
-