public final class ParseUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static BigDecimal |
VALUE_BIGDECIMAL_MINUSONE |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
parseFileSize(String filesize)
Parse filesize given as a
String (e.g. '0.003EB', '2.3GB', '5M', '30', '705.23kB') and return the size in bytes as
BigDecimal. |
public static final BigDecimal VALUE_BIGDECIMAL_MINUSONE
public static BigDecimal parseFileSize(String filesize)
String (e.g. '0.003EB', '2.3GB', '5M', '30', '705.23kB') and return the size in bytes as
BigDecimal.filesize - Size as String (KB, MB, GB, TB, EB are supported as suffixes, case-insensitive, the 'B' may be omitted; If no
suffix is given, the filesize is interpreted as bytes; Negative values are not supported.)BigDecimal (null, if a invalid 'filesize' is given.)Created by ThK-Systems. License: LGPL