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 String |
defaultPartCharset |
protected MediaType |
defaultPartContentType |
protected static Annotation[] |
empty |
protected org.apache.james.mime4j.message.Message |
mimeMessage |
protected List<InputPart> |
parts |
protected Providers |
workers |
| Constructor and Description |
|---|
MultipartInputImpl(MediaType contentType,
Providers workers) |
MultipartInputImpl(MediaType contentType,
Providers workers,
MediaType defaultPartContentType,
String defaultPartCharset) |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
addHeaderToHeadlessStream(InputStream is) |
void |
close()
Call this method to delete any temporary files created from unmarshalling this multipart message
Otherwise they will be deleted on Garbage Collection or JVM exit.
|
protected InputStream |
createHeaderInputStream() |
protected InputPart |
extractPart(org.apache.james.mime4j.message.BodyPart bodyPart) |
protected void |
extractParts() |
protected void |
finalize() |
protected String |
getCharset(MediaType mediaType) |
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.message.Message mimeMessage
protected static final Annotation[] empty
protected MediaType defaultPartContentType
protected String defaultPartCharset
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
IOExceptionpublic void close()
MultipartInputclose in interface MultipartInputprotected void finalize()
throws Throwable
Copyright © 2013. All Rights Reserved.