Class TypeConverters.CharsetConverter

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

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

    • CharsetConverter

      public CharsetConverter()
  • Method Details

    • convert

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