Class ObjectToStringTransformer

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ExpressionCapable, NamedComponent, GenericTransformer<Message<?>,​Message<?>>, Transformer

public class ObjectToStringTransformer
extends AbstractPayloadTransformer<Object,​String>
A simple transformer that creates an outbound payload by invoking the inbound payload Object's toString() method. Unless the payload is a byte[] or char[]. If the payload is a byte[], it will be transformed to a String containing the array's contents, using the charset which, by default, is "UTF-8". If the payload is a char[], it will be transformed to a String object with the array's contents.
Since:
1.0.1
Author:
Mark Fisher, Andrew Cowlin, Gary Russell