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 aStringinto anInetAddress.
-
-
Constructor Summary
Constructors Constructor Description InetAddressConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddressconvert(String s)Converts a String to a given type.
-
-
-
Method Detail
-
convert
public InetAddress convert(String s) throws Exception
Description copied from interface:TypeConverterConverts a String to a given type.- Specified by:
convertin interfaceTypeConverter<InetAddress>- Parameters:
s- the String to convert. Cannot benull.- Returns:
- the converted object.
- Throws:
Exception- thrown when a conversion error occurs
-
-