Class MultipartBodyBuilder


  • @Immutable
    @Loggable(1)
    public final class MultipartBodyBuilder
    extends Object
    Byte builder for multipart body.
    Since:
    1.0
    • Constructor Detail

      • MultipartBodyBuilder

        public MultipartBodyBuilder()
        Ctor.
      • MultipartBodyBuilder

        public MultipartBodyBuilder​(byte[] values)
        Ctor.
        Parameters:
        values - Initial byte array.
    • Method Detail

      • appendLine

        public MultipartBodyBuilder appendLine​(byte[] bytes)
        Append byte array to this multipart body including carriage return.
        Parameters:
        bytes - Byte array to append.
        Returns:
        New multipart body.
      • asBytes

        public byte[] asBytes()
        Bytes of multipart body.
        Returns:
        Bytes array.
      • append

        public MultipartBodyBuilder append​(byte[] bytes)
        Append byte array to this multipart body.
        Parameters:
        bytes - Byte array to append.
        Returns:
        New multipart body.