Package org.apache.commons.io
Class ByteOrderParser
java.lang.Object
org.apache.commons.io.ByteOrderParser
Converts Strings to 
ByteOrder instances.- Since:
- 2.6
- 
Method SummaryModifier and TypeMethodDescriptionstatic ByteOrderparseByteOrder(String value) Parses the String argument as aByteOrder.
- 
Method Details- 
parseByteOrderParses the String argument as aByteOrder.Returns ByteOrder.LITTLE_ENDIANif the given value is"LITTLE_ENDIAN".Returns Examples:ByteOrder.BIG_ENDIANif the given value is"BIG_ENDIAN".- ByteOrderParser.parseByteOrder("LITTLE_ENDIAN")returns- ByteOrder.LITTLE_ENDIAN
- ByteOrderParser.parseByteOrder("BIG_ENDIAN")returns- ByteOrder.BIG_ENDIAN
 - Parameters:
- value- the- Stringcontaining the ByteOrder representation to be parsed
- Returns:
- the ByteOrder represented by the string argument
- Throws:
- IllegalArgumentException- if the- Stringcontaining the ByteOrder representation to be parsed is unknown.
 
 
-