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
IOException
protected InputStream addHeaderToHeadlessStream(InputStream is) throws UnsupportedEncodingException
UnsupportedEncodingException
protected InputStream createHeaderInputStream() throws UnsupportedEncodingException
UnsupportedEncodingException
public String getPreamble()
getPreamble
in interface MultipartInput
public List<InputPart> getParts()
getParts
in interface MultipartInput
protected void extractParts() throws IOException
IOException
protected InputPart extractPart(org.apache.james.mime4j.message.BodyPart bodyPart) throws IOException
IOException
Copyright © 2013. All Rights Reserved.