public class MultipartInputImpl extends Object implements MultipartInput
| Modifier and Type | Class and Description |
|---|---|
class |
MultipartInputImpl.PartImpl |
| Modifier and Type | Field and Description |
|---|---|
protected MediaType |
contentType |
protected MediaType |
defaultPartContentType |
protected static Annotation[] |
empty |
protected org.apache.james.mime4j.dom.Message |
mimeMessage |
protected List<InputPart> |
parts |
protected Providers |
workers |
| Constructor and Description |
|---|
MultipartInputImpl(MediaType contentType,
Providers workers) |
MultipartInputImpl(MediaType contentType,
Providers workers,
MediaType defaultPartContentType) |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
addHeaderToHeadlessStream(InputStream is) |
protected InputStream |
createHeaderInputStream() |
protected InputPart |
extractPart(org.apache.james.mime4j.message.BodyPart bodyPart) |
protected void |
extractParts() |
List<InputPart> |
getParts() |
String |
getPreamble() |
static void |
main(String[] args) |
void |
parse(InputStream is) |
protected MediaType contentType
protected Providers workers
protected org.apache.james.mime4j.dom.Message mimeMessage
protected static final Annotation[] empty
protected MediaType defaultPartContentType
public void parse(InputStream is) throws IOException
IOExceptionprotected InputStream addHeaderToHeadlessStream(InputStream is) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected InputStream createHeaderInputStream() throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String getPreamble()
getPreamble in interface MultipartInputpublic List<InputPart> getParts()
getParts in interface MultipartInputprotected void extractParts()
throws IOException
IOExceptionprotected InputPart extractPart(org.apache.james.mime4j.message.BodyPart bodyPart) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.