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