public class StreamTransformer extends AbstractTransformer
EXPRESSION_PARSER, logger| Constructor and Description |
|---|
StreamTransformer()
Construct an instance to transform an
InputStream to
a byte[]. |
StreamTransformer(String charset)
Construct an instance with the charset to convert the stream to a
String; if null a
byte[] will be produced instead. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doTransform(Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
transformafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringpublic StreamTransformer()
InputStream to
a byte[].public StreamTransformer(String charset)
byte[] will be produced instead.charset - the charset.protected Object doTransform(Message<?> message)
AbstractTransformerdoTransform in class AbstractTransformermessage - The message.