Class HumanReadableSize


  • public class HumanReadableSize
    extends Object
    • Constructor Detail

      • HumanReadableSize

        public HumanReadableSize()
    • Method Detail

      • parse

        public static long parse​(String humanReadableSize)
        parse a size in bytes, KB, GB, MB
        Parameters:
        humanReadableSize - : size with K/M/G like 1M, 12G
        Returns:
        size in bytes
        Throws:
        IllegalArgumentException - if size is not parsable