public final class ByteOrderParser
extends java.lang.Object
ByteOrder
instances.Modifier and Type | Method and Description |
---|---|
static java.nio.ByteOrder |
parseByteOrder(java.lang.String value)
Parses the String argument as a
ByteOrder . |
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_ENDIAN
ByteOrderParser.parseByteOrder("BIG_ENDIAN")
returns ByteOrder.BIG_ENDIAN
value
- the String
containing the ByteOrder representation to be parsedjava.lang.IllegalArgumentException
- if the String
containing the ByteOrder representation to be parsed is unknown."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"