org.springframework.integration.stream
Class CharacterStreamReadingMessageSource
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharacterStreamReadingMessageSource
public CharacterStreamReadingMessageSource(Reader reader)
CharacterStreamReadingMessageSource
public CharacterStreamReadingMessageSource(Reader reader,
int bufferSize)
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)
Copyright © 2010. All Rights Reserved.