public class ByteStreamReadingMessageSource extends IntegrationObjectSupport implements MessageSource<byte[]>
InputStream
.logger
Constructor and Description |
---|
ByteStreamReadingMessageSource(InputStream stream) |
ByteStreamReadingMessageSource(InputStream stream,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
Message<byte[]> |
receive()
Retrieve the next available message from this source.
|
void |
setBytesPerMessage(int bytesPerMessage) |
void |
setShouldTruncate(boolean shouldTruncate) |
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public ByteStreamReadingMessageSource(InputStream stream)
public ByteStreamReadingMessageSource(InputStream stream, int bufferSize)
public void setBytesPerMessage(int bytesPerMessage)
public void setShouldTruncate(boolean shouldTruncate)
public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public Message<byte[]> receive()
MessageSource
null
if no message is available.receive
in interface MessageSource<byte[]>