public class StringToByteArrayConverter extends Object implements ContentTypeConverter<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
|
public Class<String> expectedSourceType()
ContentTypeConverter
expectedSourceType
in interface ContentTypeConverter<String,byte[]>
public Class<byte[]> targetType()
ContentTypeConverter
targetType
in interface ContentTypeConverter<String,byte[]>
public byte[] convert(String original)
ContentTypeConverter
SerializedObject
instance.convert
in interface ContentTypeConverter<String,byte[]>
original
- the value to convertCopyright © 2010–2024. All rights reserved.