Package com.norconex.commons.lang.unit
package com.norconex.commons.lang.unit
Classes making it easier to deal with unit conversions and formatting.
-
ClassDescriptionA
DataUnitoffers representation and conversion of various quantity of bytes/bits.Formats a data unit to a human-readable string.Parse a textual representation of a data unit and converts it into aBigDecimalrepresenting the quantity for a given unit (e.g., bytes).Runtime exception when aDataUnitParsercould not parse a string value.