public class CharacterStreamReadingMessageSource extends IntegrationObjectSupport implements MessageSource<java.lang.String>
Readers
.logger
Constructor and Description |
---|
CharacterStreamReadingMessageSource(java.io.Reader reader) |
CharacterStreamReadingMessageSource(java.io.Reader reader,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
Message<java.lang.String> |
receive()
Retrieve the next available message from this source.
|
static CharacterStreamReadingMessageSource |
stdin() |
static CharacterStreamReadingMessageSource |
stdin(java.lang.String charsetName) |
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
public CharacterStreamReadingMessageSource(java.io.Reader reader)
public CharacterStreamReadingMessageSource(java.io.Reader reader, int bufferSize)
public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public Message<java.lang.String> receive()
MessageSource
null
if no message is available.receive
in interface MessageSource<java.lang.String>
public static final CharacterStreamReadingMessageSource stdin()
public static final CharacterStreamReadingMessageSource stdin(java.lang.String charsetName)