Class CharacterStreamReadingMessageSource

java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<String>
org.springframework.integration.stream.inbound.CharacterStreamReadingMessageSource
org.springframework.integration.stream.CharacterStreamReadingMessageSource
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.integration.core.MessageSource<String>, org.springframework.integration.IntegrationPattern, org.springframework.integration.support.context.NamedComponent, org.springframework.integration.support.management.IntegrationInboundManagement, org.springframework.integration.support.management.IntegrationManagement

@Deprecated(forRemoval=true, since="7.0") public class CharacterStreamReadingMessageSource extends CharacterStreamReadingMessageSource
Deprecated, for removal: This API element is subject to removal in a future version.
A pollable source for Readers.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement

    org.springframework.integration.support.management.IntegrationManagement.ManagementOverrides
  • Field Summary

    Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator

    EXPRESSION_PARSER, logger

    Fields inherited from interface org.springframework.integration.support.management.IntegrationManagement

    METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Construct an instance with the provider reader.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Construct an instance with the provider reader and buffer size.
    CharacterStreamReadingMessageSource(Reader reader, int bufferSize, boolean blockToDetectEOF)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Construct an instance with the provided reader and buffer size.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a source that reads from System.in.
    stdin(String charsetName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a source that reads from System.in.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a source that reads from System.in.
    stdinPipe(String charsetName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a source that reads from System.in.

    Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSource

    buildMessage, destroy, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType

    Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator

    afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService, setSimpleEvaluationContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.integration.support.management.IntegrationManagement

    getThisAs, isObserved, registerObservationRegistry

    Methods inherited from interface org.springframework.integration.core.MessageSource

    getIntegrationPatternType

    Methods inherited from interface org.springframework.integration.support.context.NamedComponent

    getBeanName
  • Constructor Details

    • CharacterStreamReadingMessageSource

      public CharacterStreamReadingMessageSource(Reader reader)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Construct an instance with the provider reader. AbstractMessageSource.receive() will return null when the reader is not ready.
      Parameters:
      reader - the reader.
    • CharacterStreamReadingMessageSource

      public CharacterStreamReadingMessageSource(Reader reader, int bufferSize)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Construct an instance with the provider reader and buffer size. AbstractMessageSource.receive() will return null when the reader is not ready.
      Parameters:
      reader - the reader.
      bufferSize - the buffer size.
    • CharacterStreamReadingMessageSource

      public CharacterStreamReadingMessageSource(Reader reader, int bufferSize, boolean blockToDetectEOF)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Construct an instance with the provided reader and buffer size. When blockToDetectEOF is false, AbstractMessageSource.receive() will return null when the reader is not ready. When it is true, the thread will block until data is available; when the underlying stream is closed, a StreamClosedEvent is published to inform the application via an ApplicationListener. This can be useful, for example, when piping stdin
          cat foo.txt | java -jar my.jar
      
      or
          java -jar my.jar < foo.txt
      
      Parameters:
      reader - the reader.
      bufferSize - the buffer size; if negative use the default in BufferedReader.
      blockToDetectEOF - true to block the thread until data is available and publish a StreamClosedEvent at EOF.
      Since:
      5.0
  • Method Details