public class AllInetAddressesNameConverter extends AbstractBaseConverter<InetAddress[]>
String into a InetAddress.
For a description of the format, see InetAddress.getAllByName(String).
Example:
@Parameter(names = { "--inetAddress" }, converter = InetAddressConverter.class)
private InetAddress inetAddress;
InetAddress,
InetAddress.getAllByName(String)failOnNull, targetClass| Constructor and Description |
|---|
AllInetAddressesNameConverter(String optionName)
Constructs a converter.
|
| Modifier and Type | Method and Description |
|---|---|
protected InetAddress[] |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURIpublic AllInetAddressesNameConverter(String optionName)
optionName - The option name, may be null.protected InetAddress[] convertImpl(String value) throws UnknownHostException
AbstractBaseConverterconvertImpl in class AbstractBaseConverter<InetAddress[]>value - the value to convertUnknownHostExceptionCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0