public final class ByteOrderParser extends Object
ByteOrder instances.| 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_ENDIANByteOrderParser.parseByteOrder("BIG_ENDIAN") returns ByteOrder.BIG_ENDIANvalue - the String containing the ByteOrder representation to be parsedIllegalArgumentException - if the String containing the ByteOrder representation to be parsed is unknown.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.