Class FileSize

java.lang.Object
com.atlassian.crowd.core.tiny.FileSize

public class FileSize extends Object
A class that contains utility methods for formatting the size of files into human readable form.
  • Constructor Details

    • FileSize

      public FileSize()
  • Method Details

    • format

      public static String format(Long filesize)
      Convenience method. Calls format(long filesize).
      Parameters:
      filesize - The size of the file in bytes.
      Returns:
      The size in human readable form.
      See Also:
      • format(long)