@Plugin(name="ByteArray", category="TypeConverter") public static class TypeConverters.ByteArrayConverter extends Object implements TypeConverter<byte[]>
String
into a byte[]
.
The supported formats are:
Charset.defaultCharset()
[TODO Should this be UTF-8 instead?]Constructor and Description |
---|
ByteArrayConverter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
convert(String value)
Converts a String to a given type.
|
public byte[] convert(String value)
TypeConverter
convert
in interface TypeConverter<byte[]>
value
- the String to convert. Cannot be null
.Copyright © 1999-2017. 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.