Package com.ning.http.client.multipart
Class MultipartUtils
java.lang.Object
com.ning.http.client.multipart.MultipartUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic longgetLengthOfParts(List<Part> parts, byte[] partBoundary) static byte[]getMessageEnd(byte[] partBoundary) static MultipartBodynewMultipartBody(List<Part> parts, FluentCaseInsensitiveStringsMap requestHeaders) Creates a new multipart entity containing the given parts.static longwriteBytesToChannel(WritableByteChannel target, byte[] bytes)
-
Method Details
-
newMultipartBody
public static MultipartBody newMultipartBody(List<Part> parts, FluentCaseInsensitiveStringsMap requestHeaders) Creates a new multipart entity containing the given parts.- Parameters:
parts- The parts to include.
-
writeBytesToChannel
- Throws:
IOException
-
getMessageEnd
- Throws:
IOException
-
getLengthOfParts
-