Package com.jcabi.http.request
Class MultipartBodyBuilder
- java.lang.Object
-
- com.jcabi.http.request.MultipartBodyBuilder
-
@Immutable @Loggable(1) public final class MultipartBodyBuilder extends Object
Byte builder for multipart body.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description MultipartBodyBuilder()
Ctor.MultipartBodyBuilder(byte[] values)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultipartBodyBuilder
append(byte[] bytes)
Append byte array to this multipart body.MultipartBodyBuilder
appendLine(byte[] bytes)
Append byte array to this multipart body including carriage return.byte[]
asBytes()
Bytes of multipart body.
-
-
-
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.
-
-