com.atlassian.crowd.core.tiny
Class FileSize

java.lang.Object
  extended by 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 Summary
FileSize()
           
 
Method Summary
static String format(Long filesize)
          Convenience method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSize

public FileSize()
Method Detail

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)


Copyright © 2016 Atlassian. All Rights Reserved.