Modifier and Type | Method and Description |
---|---|
static ByteOrder |
parseByteOrder(String value)
Parses the String argument as a
ByteOrder . |
public static ByteOrder parseByteOrder(String value)
ByteOrder
.
Returns ByteOrder.LITTLE_ENDIAN
if the given value is "LITTLE_ENDIAN"
.
Returns ByteOrder.BIG_ENDIAN
if the given value is "BIG_ENDIAN"
.
ByteOrderParser.parseByteOrder("LITTLE_ENDIAN")
returns ByteOrder.LITTLE_ENDIAN
ByteOrderParser.parseByteOrder("BIG_ENDIAN")
returns ByteOrder.BIG_ENDIAN
value
- the String
containing the ByteOrder representation to be parsedIllegalArgumentException
- if the String
containing the ByteOrder representation to be parsed is unknown.Jas4pp 1.5 © Java Analysis Studio for Particle Physics