Package com.pnfsoftware.jeb.util.format
Class SizeFormatter
java.lang.Object
com.pnfsoftware.jeb.util.format.SizeFormatter
Computer sizes formatting utility methods (bytes, kilo-bytes, etc.)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatByteSize
(long bytesize) Format a bytes size as a human-readable string.
-
Constructor Details
-
SizeFormatter
public SizeFormatter()
-
-
Method Details
-
formatByteSize
Format a bytes size as a human-readable string.- Parameters:
bytesize
- positive size in bytes- Returns:
-