public class Multipart extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Multipart.Part
A single part of a multipart entity
|
Constructor and Description |
---|
Multipart() |
Modifier and Type | Method and Description |
---|---|
static String |
getBoundary(String contentType)
Given a content type value, get the "boundary" parameter
|
static List<Multipart.Part> |
parse(Map<String,String> headers,
byte[] body)
Parses a multipart message or a multipart subpart of a multipart message.
|
static Map<String,String> |
parseHeaders(String s)
Parse a block of header lines as defined here:
http://tools.ietf.org/html/rfc822#section-3.2
|
public static List<Multipart.Part> parse(Map<String,String> headers, byte[] body)
public static Map<String,String> parseHeaders(String s)
s
- The header blobCopyright © 2014. All Rights Reserved.