Modifier and Type | Field and Description |
---|---|
static long |
GB |
static long |
KB |
static long |
MB |
static long |
TB |
Modifier and Type | Method and Description |
---|---|
static long |
parseSizeInBytes(String string)
Returns the number of bytes corresponding to a string expressing a size.
|
public static final long KB
public static final long MB
public static final long GB
public static final long TB
public static long parseSizeInBytes(String string) throws NumberFormatException
The suffixes KB, MB, GB, TB are recognized (in any case).
string
- the size as a stringNumberFormatException
- if the size cannot be parsedCopyright © 2018 Nuxeo. All rights reserved.