|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.jobmanager.util.DataSizeParser
public final class DataSizeParser
parses strings describing data sizes to a long giving the number of bytes specified.
Method Summary | |
---|---|
static long |
parse(java.lang.String dataSize)
calls parse(String, long) with defaultSize 0. |
static long |
parse(java.lang.String dataSize,
long defaultSize)
parse data size and return number of bytes described by the string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long parse(java.lang.String dataSize, long defaultSize)
IllegalArgumentException
is thrown. If the number part cannot be parsed, a NumberFormatException
is
thrown.
dataSize
- string in described formatdefaultSize
- value to return, if dataSize is null or an empty string.
public static long parse(java.lang.String dataSize)
parse(String, long)
with defaultSize 0.
dataSize
- string in described format
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |