Class BytesSizeUtils


  • public class BytesSizeUtils
    extends java.lang.Object
    Author:
    Loc Ha
    • Constructor Summary

      Constructors 
      Constructor Description
      BytesSizeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long translateToBytes​(java.lang.String sizeAmt)  
      static long translateToBytes​(java.lang.String sizeAmt, boolean base10)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BytesSizeUtils

        public BytesSizeUtils()
    • Method Detail

      • translateToBytes

        public static long translateToBytes​(java.lang.String sizeAmt)
                                     throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • translateToBytes

        public static long translateToBytes​(java.lang.String sizeAmt,
                                            boolean base10)
                                     throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException