public final class ByteOrderParser
extends java.lang.Object
ByteOrder instances.| Modifier | Constructor and Description |
|---|---|
private |
ByteOrderParser()
ByteOrderUtils is a static utility class, so prevent construction with a private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteOrder |
parseByteOrder(java.lang.String value)
Parses the String argument as a
ByteOrder. |
private ByteOrderParser()
public static java.nio.ByteOrder parseByteOrder(java.lang.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 parsedjava.lang.IllegalArgumentException - if the String containing the ByteOrder representation to be parsed is unknown.