Package org.apache.camel.util
Class UnitUtils
java.lang.Object
org.apache.camel.util.UnitUtils
Unit utils.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
printUnitFromBytes
(long bytes) If having a size in bytes and wanting to print this in human friendly\ format with xx kB, xx MB, xx GB instead of a large byte number.static String
printUnitFromBytes
(long bytes, char decimal) If having a size in bytes and wanting to print this in human friendly\ format with xx kB, xx MB, xx GB instead of a large byte number.static String
printUnitFromBytesDot
(long bytes) If having a size in bytes and wanting to print this in human friendly\ format with xx kB, xx MB, xx GB instead of a large byte number, using dot as decimal separator.
-
Method Details
-
printUnitFromBytes
If having a size in bytes and wanting to print this in human friendly\ format with xx kB, xx MB, xx GB instead of a large byte number.- Parameters:
bytes
- the value in bytes
-
printUnitFromBytesDot
If having a size in bytes and wanting to print this in human friendly\ format with xx kB, xx MB, xx GB instead of a large byte number, using dot as decimal separator.- Parameters:
bytes
- the value in bytes
-
printUnitFromBytes
If having a size in bytes and wanting to print this in human friendly\ format with xx kB, xx MB, xx GB instead of a large byte number.- Parameters:
bytes
- the value in bytesdecimal
- the decimal separator char to use
-