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
IOException
public static byte[] getMessageEnd(byte[] partBoundary) throws IOException
IOException
Copyright © 2015. All Rights Reserved.