Class TypeConverters.FileConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.FileConverter
-
- All Implemented Interfaces:
TypeConverter<java.io.File>
- Enclosing class:
- TypeConverters
@Plugin(name="File", category="TypeConverter") public static class TypeConverters.FileConverter extends java.lang.Object implements TypeConverter<java.io.File>
Converts aStringinto aFile.
-
-
Constructor Summary
Constructors Constructor Description FileConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Fileconvert(java.lang.String s)Converts a String to a given type.
-
-
-
Method Detail
-
convert
public java.io.File convert(java.lang.String s)
Description copied from interface:TypeConverterConverts a String to a given type.- Specified by:
convertin interfaceTypeConverter<java.io.File>- Parameters:
s- the String to convert. Cannot benull.- Returns:
- the converted object.
-
-