Class TypeConverters.ByteArrayConverter

java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.ByteArrayConverter
All Implemented Interfaces:
TypeConverter<byte[]>
Enclosing class:
TypeConverters

@Plugin(name="ByteArray", category="TypeConverter") public static class TypeConverters.ByteArrayConverter extends Object implements TypeConverter<byte[]>
Converts a String into a byte[]. The supported formats are:
  • Constructor Details

    • ByteArrayConverter

      public ByteArrayConverter()
  • Method Details

    • convert

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