@ComponentProfile(summary="MessageWrapper implementation wraps a metadata value as an InputStream", since="3.9.0") public class MetadataInputStreamWrapper extends MetadataStreamParameter implements MessageWrapper<java.io.InputStream>
MessageWrapper
implementation wraps a metadata value as an InputStream
.In the adapter configuration file this class is aliased as metadata-input-stream-wrapper which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
MetadataInputStreamWrapper() |
MetadataInputStreamWrapper(java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
wrap(InterlokMessage m) |
charset, getContentEncoding, getMetadataKey, setContentEncoding, setMetadataKey, toInputStream, withContentEncoding, withMetadataKey
public MetadataInputStreamWrapper()
public MetadataInputStreamWrapper(java.lang.String key)
public java.io.InputStream wrap(InterlokMessage m) throws java.lang.Exception
wrap
in interface MessageWrapper<java.io.InputStream>
java.lang.Exception