Class ByteArrayContent

    • Constructor Detail

      • ByteArrayContent

        public ByteArrayContent​(byte[] data,
                                MimeType mimeType)
      • ByteArrayContent

        public ByteArrayContent​(Byte[] data,
                                MimeType mimeType)
      • ByteArrayContent

        public ByteArrayContent​(org.reactivestreams.Publisher<byte[]> dataAsStream,
                                MimeType mimeType)
    • Method Detail

      • data

        public byte[] data()
        Specified by:
        data in interface TypedContent<byte[],​byte[]>
      • isStream

        public boolean isStream()
        Specified by:
        isStream in interface TypedContent<byte[],​byte[]>
      • consume

        public void consume()
        Description copied from interface: TypedContent
        Consumes 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:
        consume in interface TypedContent<byte[],​byte[]>
      • toPrimitives

        public static byte[] toPrimitives​(Byte[] oBytes)