public class StringToByteArrayConverter extends AbstractContentTypeConverter<String,byte[]>
| Constructor and Description |
|---|
StringToByteArrayConverter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convert(String original)
Converts the given object into another.
|
Class<String> |
expectedSourceType()
The expected type of input data.
|
Class<byte[]> |
targetType()
The returned type of IntermediateRepresentation
|
convertpublic Class<String> expectedSourceType()
ContentTypeConverterpublic Class<byte[]> targetType()
ContentTypeConverterpublic byte[] convert(String original)
ContentTypeConverterSerializedObject
instance.original - the value to convertCopyright © 2010-2014. All Rights Reserved.