Package com.jcabi.http.request
Class MultipartBodyBuilder
java.lang.Object
com.jcabi.http.request.MultipartBodyBuilder
Byte builder for multipart body.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(byte[] bytes) Append byte array to this multipart body.appendLine(byte[] bytes) Append byte array to this multipart body including carriage return.byte[]asBytes()Bytes of multipart body.
-
Constructor Details
-
MultipartBodyBuilder
public MultipartBodyBuilder()Ctor. -
MultipartBodyBuilder
public MultipartBodyBuilder(byte[] values) Ctor.- Parameters:
values- Initial byte array.
-
-
Method Details
-
appendLine
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
Append byte array to this multipart body.- Parameters:
bytes- Byte array to append.- Returns:
- New multipart body.
-