Class TypeConverters.FileConverter

java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.FileConverter
All Implemented Interfaces:
TypeConverter<File>
Enclosing class:
TypeConverters

@Plugin(name="File", category="TypeConverter") public static class TypeConverters.FileConverter extends Object implements TypeConverter<File>
Converts a String into a File.
  • Constructor Details

    • FileConverter

      public FileConverter()
  • Method Details

    • convert

      public File convert(String s)
      Description copied from interface: TypeConverter
      Converts a String to a given type.
      Specified by:
      convert in interface TypeConverter<File>
      Parameters:
      s - the String to convert. Cannot be null.
      Returns:
      the converted object.