Class FileUtils

java.lang.Object
VASSAL.tools.io.FileUtils

public class FileUtils extends Object
Custom Implementation of FileUtils.byteCountToDisplaySize to fix rounding bug
  • Constructor Details

    • FileUtils

      public FileUtils()
  • Method Details

    • byteCountToDisplaySize

      public static String byteCountToDisplaySize(BigInteger fileSize)
      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

      public static String byteCountToDisplaySize(long fileSize)
      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