? ByteOrderParser
java.lang.Object
org.apache.commons.io.ByteOrderParser
Converts Strings to
ByteOrder
instances.- ???????:
- 2.6
-
????
??????????static ByteOrder
parseByteOrder
(String value) Parses the String argument as aByteOrder
.
-
??????
-
parseByteOrder
Parses the String argument as aByteOrder
.Returns
ByteOrder.LITTLE_ENDIAN
if the given value is"LITTLE_ENDIAN"
.Returns
Examples:ByteOrder.BIG_ENDIAN
if the given value is"BIG_ENDIAN"
.ByteOrderParser.parseByteOrder("LITTLE_ENDIAN")
returnsByteOrder.LITTLE_ENDIAN
ByteOrderParser.parseByteOrder("BIG_ENDIAN")
returnsByteOrder.BIG_ENDIAN
- ??:
value
- theString
containing the ByteOrder representation to be parsed- ??:
- the ByteOrder represented by the string argument
- ??:
IllegalArgumentException
- if theString
containing the ByteOrder representation to be parsed is unknown.
-