Class ByteArrayContent
- java.lang.Object
-
- de.codecentric.reedelk.runtime.api.message.content.ByteArrayContent
-
- All Implemented Interfaces:
TypedContent<byte[],byte[]>,Serializable
public class ByteArrayContent extends Object implements TypedContent<byte[],byte[]>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteArrayContent(byte[] data, MimeType mimeType)ByteArrayContent(Byte[] data, MimeType mimeType)ByteArrayContent(org.reactivestreams.Publisher<byte[]> dataAsStream, MimeType mimeType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume()Consumes the stream payload if it has not been consumed yet.byte[]data()booleanisStream()MimeTypemimeType()TypedPublisher<byte[]>stream()Class<byte[]>streamType()static byte[]toPrimitives(Byte[] oBytes)StringtoString()Class<byte[]>type()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.codecentric.reedelk.runtime.api.message.content.TypedContent
getData, getMimeType, getStream, getStreamType, getType
-
-
-
-
Method Detail
-
type
public Class<byte[]> type()
- Specified by:
typein interfaceTypedContent<byte[],byte[]>
-
streamType
public Class<byte[]> streamType()
- Specified by:
streamTypein interfaceTypedContent<byte[],byte[]>
-
mimeType
public MimeType mimeType()
- Specified by:
mimeTypein interfaceTypedContent<byte[],byte[]>
-
data
public byte[] data()
- Specified by:
datain interfaceTypedContent<byte[],byte[]>
-
stream
public TypedPublisher<byte[]> stream()
- Specified by:
streamin interfaceTypedContent<byte[],byte[]>
-
isStream
public boolean isStream()
- Specified by:
isStreamin interfaceTypedContent<byte[],byte[]>
-
consume
public void consume()
Description copied from interface:TypedContentConsumes the stream payload if it has not been consumed yet. This method might be useful to call before cloning the message. E.g the fork component uses this method before invoking fork branches with a copy of the message.- Specified by:
consumein interfaceTypedContent<byte[],byte[]>
-
toPrimitives
public static byte[] toPrimitives(Byte[] oBytes)
-
-