Package org.apache.activemq.util
Class XBeanByteConverterUtil
- java.lang.Object
-
- org.apache.activemq.util.XBeanByteConverterUtil
-
public final class XBeanByteConverterUtil extends Object
Converts string values like "20 Mb", "1024kb", and "1g" to long or int values in bytes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Integer
convertToIntegerBytes(String str)
static Long
convertToLongBytes(String str)
-
-
-
Method Detail
-
convertToLongBytes
public static Long convertToLongBytes(String str) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
convertToIntegerBytes
public static Integer convertToIntegerBytes(String str) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-