Spring Integration

org.springframework.integration.stream
Class CharacterStreamReadingMessageSource

java.lang.Object
  extended by org.springframework.integration.stream.CharacterStreamReadingMessageSource
All Implemented Interfaces:
MessageSource<String>

public class CharacterStreamReadingMessageSource
extends Object
implements MessageSource<String>

A pollable source for Readers.

Author:
Mark Fisher

Constructor Summary
CharacterStreamReadingMessageSource(Reader reader)
           
CharacterStreamReadingMessageSource(Reader reader, int bufferSize)
           
 
Method Summary
 StringMessage receive()
          Retrieve the next available message from this source.
static CharacterStreamReadingMessageSource stdin()
           
static CharacterStreamReadingMessageSource stdin(String charsetName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterStreamReadingMessageSource

public CharacterStreamReadingMessageSource(Reader reader)

CharacterStreamReadingMessageSource

public CharacterStreamReadingMessageSource(Reader reader,
                                           int bufferSize)
Method Detail

receive

public StringMessage receive()
Description copied from interface: MessageSource
Retrieve the next available message from this source. Returns null if no message is available.

Specified by:
receive in interface MessageSource<String>

stdin

public static final CharacterStreamReadingMessageSource stdin()

stdin

public static final CharacterStreamReadingMessageSource stdin(String charsetName)

Spring Integration

Copyright © 2010. All Rights Reserved.