Class CommandLine.BuiltIn.InetAddressConverter
java.lang.Object
org.apache.logging.log4j.core.tools.picocli.CommandLine.BuiltIn.InetAddressConverter
- All Implemented Interfaces:
CommandLine.ITypeConverter<InetAddress>
- Enclosing class:
CommandLine.BuiltIn
static class CommandLine.BuiltIn.InetAddressConverter
extends Object
implements CommandLine.ITypeConverter<InetAddress>
Converts text to a
InetAddress
by delegating to InetAddress.getByName(String)
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the specified command line argument value to some domain object.
-
Constructor Details
-
InetAddressConverter
InetAddressConverter()
-
-
Method Details
-
convert
Description copied from interface:CommandLine.ITypeConverter
Converts the specified command line argument value to some domain object.- Specified by:
convert
in interfaceCommandLine.ITypeConverter<InetAddress>
- Parameters:
s
- the command line argument String value- Returns:
- the resulting domain object
- Throws:
Exception
- an exception detailing what went wrong during the conversion
-