org.springframework.integration.adapter.stream
Class CharacterStreamSource
java.lang.Object
org.springframework.integration.adapter.stream.CharacterStreamSource
- All Implemented Interfaces:
- Source<java.lang.String>
public class CharacterStreamSource
- extends java.lang.Object
- implements Source<java.lang.String>
A pollable source for Readers
.
- Author:
- Mark Fisher
Field Summary |
private java.lang.Object |
monitor
|
private java.io.BufferedReader |
reader
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
private final java.io.BufferedReader reader
monitor
private final java.lang.Object monitor
CharacterStreamSource
public CharacterStreamSource(java.io.Reader reader)
CharacterStreamSource
public CharacterStreamSource(java.io.Reader reader,
int bufferSize)
receive
public StringMessage receive()
- Description copied from interface:
Source
- Retrieve a message from this source or
null
if no message is available.
- Specified by:
receive
in interface Source<java.lang.String>
stdin
public static final CharacterStreamSource stdin()
stdin
public static final CharacterStreamSource stdin(java.lang.String charsetName)