public class ByteStreamReadingMessageSource extends IntegrationObjectSupport implements MessageSource<byte[]>
InputStream.logger| Constructor and Description |
|---|
ByteStreamReadingMessageSource(java.io.InputStream stream) |
ByteStreamReadingMessageSource(java.io.InputStream stream,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringpublic ByteStreamReadingMessageSource(java.io.InputStream stream)
public ByteStreamReadingMessageSource(java.io.InputStream stream,
int bufferSize)
public void setBytesPerMessage(int bytesPerMessage)
public void setShouldTruncate(boolean shouldTruncate)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic Message<byte[]> receive()
MessageSourcenull if no message is available.receive in interface MessageSource<byte[]>