public final class ByteOrderConverter extends AbstractBaseConverter<ByteOrder>
ByteOrder
. Valid values are "BIG_ENDIAN"
and "LITTLE_ENDIAN"
.
Example:
@Parameter(names = { "--byteOrder" }, converter = ByteOrderConverter.class)
private ByteOrder byteOrder;
ByteOrder
,
ByteOrder.BIG_ENDIAN
,
ByteOrder.LITTLE_ENDIAN
failOnNull, targetClass
Constructor and Description |
---|
ByteOrderConverter(String optionName)
Constructs a converter.
|
Modifier and Type | Method and Description |
---|---|
protected ByteOrder |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURI
public ByteOrderConverter(String optionName)
optionName
- The option name, may be null.protected ByteOrder convertImpl(String value)
AbstractBaseConverter
convertImpl
in class AbstractBaseConverter<ByteOrder>
value
- the value to convertCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0