Class CharacterStreamWritingMessageHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ComponentSourceAware, ExpressionCapable, Orderable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class CharacterStreamWritingMessageHandler extends AbstractMessageHandler
A MessageHandler that writes characters to a Writer. String, character array, and byte array payloads will be written directly, but for other payload types, the result of the object's IntegrationObjectSupport.toString() method will be written. To append a new-line after each write, set the shouldAppendNewLine flag to 'true'. It is 'false' by default.
Author:
Mark Fisher, Gary Russell
  • Constructor Details

    • CharacterStreamWritingMessageHandler

      public CharacterStreamWritingMessageHandler(Writer writer)
    • CharacterStreamWritingMessageHandler

      public CharacterStreamWritingMessageHandler(Writer writer, int bufferSize)
  • Method Details