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:
- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- ApplicationEventPublisherAware,- MessageSource<String>,- IntegrationPattern,- NamedComponent,- IntegrationInboundManagement,- 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.- Author:
- Mark Fisher, Gary Russell, Artem Bilan, Christian Tzolov, Ngoc Nhan
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagementIntegrationManagement.ManagementOverrides
- 
Field SummaryFields inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorEXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagementMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Construct an instance with the provider reader.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.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 SummaryModifier and TypeMethodDescriptionstdin()Deprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in.Deprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in.Deprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in.Deprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in.Methods inherited from class org.springframework.integration.stream.inbound.CharacterStreamReadingMessageSourcedoReceive, getComponentType, setApplicationEventPublisherMethods inherited from class org.springframework.integration.endpoint.AbstractMessageSourcebuildMessage, destroy, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService, setSimpleEvaluationContextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagementgetThisAs, isObserved, registerObservationRegistryMethods inherited from interface org.springframework.integration.core.MessageSourcegetIntegrationPatternTypeMethods inherited from interface org.springframework.integration.support.context.NamedComponentgetBeanName
- 
Constructor Details- 
CharacterStreamReadingMessageSourceDeprecated, for removal: This API element is subject to removal in a future version.Construct an instance with the provider reader.AbstractMessageSource.receive()will returnnullwhen the reader is not ready.- Parameters:
- reader- the reader.
 
- 
CharacterStreamReadingMessageSourceDeprecated, 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 returnnullwhen the reader is not ready.- Parameters:
- reader- the reader.
- bufferSize- the buffer size.
 
- 
CharacterStreamReadingMessageSourceDeprecated, for removal: This API element is subject to removal in a future version.Construct an instance with the provided reader and buffer size. WhenblockToDetectEOFisfalse,AbstractMessageSource.receive()will returnnullwhen the reader is not ready. When it istrue, the thread will block until data is available; when the underlying stream is closed, aStreamClosedEventis published to inform the application via anApplicationListener. This can be useful, for example, when piping stdincat foo.txt | java -jar my.jarorjava -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- StreamClosedEventat EOF.
- Since:
- 5.0
 
 
- 
- 
Method Details- 
stdinDeprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in. EOF will not be detected.- Returns:
- the stream.
 
- 
stdinDeprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in. EOF will not be detected.- Parameters:
- charsetName- the charset to use when converting bytes to String.
- Returns:
- the stream.
 
- 
stdinPipeDeprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in. EOF will be detected and the application context closed.- Returns:
- the stream.
- Since:
- 5.0
- See Also:
 
- 
stdinPipeDeprecated, for removal: This API element is subject to removal in a future version.Create a source that reads fromSystem.in. EOF will be detected and the application context closed.- Parameters:
- charsetName- the charset to use when converting bytes to String.
- Returns:
- the stream.
- Since:
- 5.0
- See Also:
 
 
- 
CharacterStreamReadingMessageSource