@Plugin(name="InetAddress", category="TypeConverter") public static class TypeConverters.InetAddressConverter extends Object implements TypeConverter<InetAddress>
String
into an InetAddress
.Constructor and Description |
---|
InetAddressConverter() |
Modifier and Type | Method and Description |
---|---|
InetAddress |
convert(String s)
Converts a String to a given type.
|
public InetAddress convert(String s) throws Exception
TypeConverter
convert
in interface TypeConverter<InetAddress>
s
- the String to convert. Cannot be null
.Exception
- thrown when a conversion error occurs Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.