public class MultipartUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getLengthOfParts(List<Part> parts,
byte[] partBoundary) |
static byte[] |
getMessageEnd(byte[] partBoundary) |
static MultipartBody |
newMultipartBody(List<Part> parts,
FluentCaseInsensitiveStringsMap requestHeaders)
Creates a new multipart entity containing the given parts.
|
static long |
writeBytesToChannel(WritableByteChannel target,
byte[] bytes) |
public static MultipartBody newMultipartBody(List<Part> parts, FluentCaseInsensitiveStringsMap requestHeaders)
parts - The parts to include.public static long writeBytesToChannel(WritableByteChannel target, byte[] bytes) throws IOException
IOExceptionpublic static byte[] getMessageEnd(byte[] partBoundary)
throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.