@FunctionalInterface public interface ByteSizeParser
ByteSizes out of textual representation.| Modifier and Type | Interface and Description |
|---|---|
static class |
ByteSizeParser.Default |
| Modifier and Type | Method and Description |
|---|---|
static ByteSizeParser |
New()
Preudo-constructor method to create a new
ByteSizeParser. |
static ByteSizeParser |
New(ByteUnit defaultUnit)
Preudo-constructor method to create a new
ByteSizeParser. |
ByteSize |
parse(String text)
Tries to parse a
ByteSize out of text. |
ByteSize parse(String text)
ByteSize out of text.
It usually consists of an amount and an unit, e.g. "1MB" or "1.2 GB".text - the textual inputByteSizeIllegalArgumentException - if the text couldn't be parsed to a ByteSizeByteSize,
ByteUnitstatic ByteSizeParser New()
ByteSizeParser.ByteSizeParserstatic ByteSizeParser New(ByteUnit defaultUnit)
ByteSizeParser.defaultUnit - the default unit which is used if no unit is given in the inputByteSizeParserCopyright © 2022 MicroStream Software. All rights reserved.