public class ByteStreamReadingMessageSource extends AbstractMessageSource<byte[]>
InputStream
.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
ByteStreamReadingMessageSource(InputStream stream) |
ByteStreamReadingMessageSource(InputStream stream,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
doReceive()
Subclasses must implement this method.
|
String |
getComponentType() |
void |
setBytesPerMessage(int bytesPerMessage) |
void |
setShouldTruncate(boolean shouldTruncate) |
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntegrationPatternType
getThisAs
public ByteStreamReadingMessageSource(InputStream stream)
public ByteStreamReadingMessageSource(InputStream stream, int bufferSize)
public void setBytesPerMessage(int bytesPerMessage)
public void setShouldTruncate(boolean shouldTruncate)
public String getComponentType()
protected byte[] doReceive()
AbstractMessageSource
payload
of
type T, but the returned value may also be a Message
instance whose payload is of type T;
also can be AbstractIntegrationMessageBuilder
which is used for additional headers population.doReceive
in class AbstractMessageSource<byte[]>