org.springframework.integration.adapter.stream
Class CharacterStreamSourceAdapter

java.lang.Object
  extended by org.springframework.integration.adapter.AbstractSourceAdapter<T>
      extended by org.springframework.integration.adapter.PollingSourceAdapter<java.lang.String>
          extended by org.springframework.integration.adapter.stream.CharacterStreamSourceAdapter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, SourceAdapter, MessagingTaskSchedulerAware

public class CharacterStreamSourceAdapter
extends PollingSourceAdapter<java.lang.String>

A polling source adapter that wraps a CharacterStreamSource.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.adapter.AbstractSourceAdapter
logger
 
Constructor Summary
CharacterStreamSourceAdapter(java.io.InputStream stream)
           
 
Method Summary
static CharacterStreamSourceAdapter stdinAdapter(MessageChannel channel)
          Factory method that creates an adapter for stdin (System.in).
 
Methods inherited from class org.springframework.integration.adapter.PollingSourceAdapter
getSource, isRunning, processMessages, setInitialDelay, setMaxMessagesPerTask, setMessagingTaskScheduler, setPeriod, start, stop
 
Methods inherited from class org.springframework.integration.adapter.AbstractSourceAdapter
afterPropertiesSet, getChannel, getMessageMapper, initialize, isInitialized, sendToChannel, setChannel, setMessageMapper, setSendTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterStreamSourceAdapter

public CharacterStreamSourceAdapter(java.io.InputStream stream)
Method Detail

stdinAdapter

public static CharacterStreamSourceAdapter stdinAdapter(MessageChannel channel)
Factory method that creates an adapter for stdin (System.in).