org.springframework.integration.stream
Class CharacterStreamReadingMessageSource

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by 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.InitializingBean, org.springframework.integration.context.NamedComponent, org.springframework.integration.core.MessageSource<java.lang.String>

public class CharacterStreamReadingMessageSource
extends org.springframework.integration.context.IntegrationObjectSupport
implements org.springframework.integration.core.MessageSource<java.lang.String>

A pollable source for Readers.


Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
CharacterStreamReadingMessageSource(java.io.Reader reader)
           
CharacterStreamReadingMessageSource(java.io.Reader reader, int bufferSize)
           
 
Method Summary
 java.lang.String getComponentType()
           
 org.springframework.integration.Message<java.lang.String> receive()
           
static CharacterStreamReadingMessageSource stdin()
           
static CharacterStreamReadingMessageSource stdin(java.lang.String charsetName)
           
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharacterStreamReadingMessageSource

public CharacterStreamReadingMessageSource(java.io.Reader reader)

CharacterStreamReadingMessageSource

public CharacterStreamReadingMessageSource(java.io.Reader reader,
                                           int bufferSize)
Method Detail

getComponentType

public java.lang.String getComponentType()
Specified by:
getComponentType in interface org.springframework.integration.context.NamedComponent
Overrides:
getComponentType in class org.springframework.integration.context.IntegrationObjectSupport

receive

public org.springframework.integration.Message<java.lang.String> receive()
Specified by:
receive in interface org.springframework.integration.core.MessageSource<java.lang.String>

stdin

public static final CharacterStreamReadingMessageSource stdin()

stdin

public static final CharacterStreamReadingMessageSource stdin(java.lang.String charsetName)