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, toStringpublic ByteStreamReadingMessageSource(InputStream stream)
public ByteStreamReadingMessageSource(InputStream stream, int bufferSize)
public void setBytesPerMessage(int bytesPerMessage)
public void setShouldTruncate(boolean shouldTruncate)
public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic Message<byte[]> receive()
MessageSourcenull if no message is available.receive in interface MessageSource<byte[]>