org.apache.logging.log4j.core.config.plugins.util
Class TypeConverters.ByteArrayConverter
java.lang.Object
org.apache.logging.log4j.core.config.plugins.util.TypeConverters.ByteArrayConverter
- All Implemented Interfaces:
- TypeConverter<byte[]>
- Enclosing class:
- TypeConverters
public static class TypeConverters.ByteArrayConverter
- extends Object
- implements TypeConverter<byte[]>
Converts a String into a byte[].
The supported formats are:
- 0x0123456789ABCDEF
- Base64:ABase64String
- String
|
Method Summary |
byte[] |
convert(String value)
Converts a String to a given type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeConverters.ByteArrayConverter
public TypeConverters.ByteArrayConverter()
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.
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.