Class TypeConverters.InetAddressConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.InetAddressConverter
-
- All Implemented Interfaces:
TypeConverter<InetAddress>
- Enclosing class:
- TypeConverters
@Plugin(name="InetAddress", category="TypeConverter") public static class TypeConverters.InetAddressConverter extends Object implements TypeConverter<InetAddress>
Converts aString
into anInetAddress
.
-
-
Constructor Summary
Constructors Constructor Description InetAddressConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddress
convert(String s)
Converts a String to a given type.
-
-
-
Method Detail
-
convert
public InetAddress convert(String s) throws Exception
Description copied from interface:TypeConverter
Converts a String to a given type.- Specified by:
convert
in interfaceTypeConverter<InetAddress>
- Parameters:
s
- the String to convert. Cannot benull
.- Returns:
- the converted object.
- Throws:
Exception
- thrown when a conversion error occurs
-
-