public class ByteStreamReadingMessageSource
extends org.springframework.integration.context.IntegrationObjectSupport
implements org.springframework.integration.core.MessageSource<byte[]>
InputStream
.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() |
org.springframework.messaging.Message<byte[]> |
receive() |
void |
setBytesPerMessage(int bytesPerMessage) |
void |
setShouldTruncate(boolean shouldTruncate) |
afterPropertiesSet, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public 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()
getComponentType
in interface org.springframework.integration.support.context.NamedComponent
getComponentType
in class org.springframework.integration.context.IntegrationObjectSupport
public org.springframework.messaging.Message<byte[]> receive()
receive
in interface org.springframework.integration.core.MessageSource<byte[]>