public final class MimeMultipartParser extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MimeMultipartParser.PartAttachment |
Constructor and Description |
---|
MimeMultipartParser(InputStream in,
String cType,
StreamingAttachmentFeature feature) |
Modifier and Type | Method and Description |
---|---|
Attachment |
getAttachmentPart(String contentId)
This method can be called to get a matching MIME attachment part for the
given contentId.
|
Map<String,Attachment> |
getAttachmentParts()
Parses the entire stream and returns all MIME parts except root MIME part.
|
String |
getContentType() |
Attachment |
getRootPart()
Parses the stream and returns the root part.
|
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature)
@Nullable public Attachment getRootPart()
@NotNull public Map<String,Attachment> getAttachmentParts()
@Nullable public Attachment getAttachmentPart(String contentId) throws IOException
IOException
public String getContentType()
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.