public final class ParseUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
parseFileSize(String filesize)
Parse filesize given as String (e.g. 0.003EB, 2.3GB, 5M, 30, 705.23kB) and return the size in bytes as
BigDecimal. |
public static BigDecimal parseFileSize(String filesize)
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.)Created by ThK-Systems. License: LGPL