public class MultipartInputImpl extends Object implements MultipartInput, ProvidersContextRetainer
| 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 |
savedProviders |
protected Providers |
workers |
| Constructor and Description |
|---|
MultipartInputImpl(MediaType contentType,
Providers workers) |
MultipartInputImpl(MediaType contentType,
Providers workers,
MediaType defaultPartContentType,
String defaultPartCharset) |
MultipartInputImpl(org.apache.james.mime4j.message.Multipart multipart,
Providers workers) |
| 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) |
void |
setProviders(Providers providers) |
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
protected Providers savedProviders
public MultipartInputImpl(MediaType contentType, Providers workers, MediaType defaultPartContentType, String defaultPartCharset)
public MultipartInputImpl(org.apache.james.mime4j.message.Multipart multipart,
Providers workers)
throws IOException
IOExceptionpublic 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
public void setProviders(Providers providers)
setProviders in interface ProvidersContextRetainerCopyright © 2018 JBoss by Red Hat. All rights reserved.