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<?>>

@Deprecated(forRemoval=true, since="7.0") public class CharacterStreamWritingMessageHandler extends CharacterStreamWritingMessageHandler
Deprecated, for removal: This API element is subject to removal in a future version.
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)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CharacterStreamWritingMessageHandler

      public CharacterStreamWritingMessageHandler(Writer writer, int bufferSize)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • stdout

      public static CharacterStreamWritingMessageHandler stdout()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stdout (System.out) with the default charset encoding.
      Returns:
      A stdout handler with the default charset.
    • stdout

      public static CharacterStreamWritingMessageHandler stdout(@Nullable String charsetName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stdout (System.out) with the specified charset encoding.
      Parameters:
      charsetName - The charset name.
      Returns:
      A stdout handler.
    • stderr

      public static CharacterStreamWritingMessageHandler stderr()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stderr (System.err) with the default charset encoding.
      Returns:
      A stderr handler with the default charset.
    • stderr

      public static CharacterStreamWritingMessageHandler stderr(@Nullable String charsetName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Factory method that creates a target for stderr (System.err) with the specified charset encoding.
      Parameters:
      charsetName - The charset name.
      Returns:
      A stderr handler.