public class MimeBodyElement extends Object implements FetchResponse.BodyElement
FetchResponse.BodyElement which represent a MIME element specified by for example (BODY[1.MIME])| Modifier and Type | Field and Description | 
|---|---|
protected List<org.apache.james.mailbox.model.MessageResult.Header> | 
headers  | 
protected long | 
size  | 
| Constructor and Description | 
|---|
MimeBodyElement(String name,
               List<org.apache.james.mailbox.model.MessageResult.Header> headers)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected long | 
calculateSize(List<org.apache.james.mailbox.model.MessageResult.Header> headers)  | 
InputStream | 
getInputStream()
Return the Literal as  
InputStream | 
String | 
getName()
The full name of the element fetched. 
 | 
long | 
size()
Size of the literal content data. 
 | 
protected final List<org.apache.james.mailbox.model.MessageResult.Header> headers
protected long size
public String getName()
FetchResponse.BodyElementFETCH
 command input.getName in interface FetchResponse.BodyElementFetchResponse.BodyElement.getName()protected long calculateSize(List<org.apache.james.mailbox.model.MessageResult.Header> headers) throws org.apache.james.mailbox.exception.MailboxException
org.apache.james.mailbox.exception.MailboxExceptionpublic long size()
Literalsize in interface LiteralLiteral.size()public InputStream getInputStream() throws IOException
LiteralInputStreamgetInputStream in interface LiteralIOExceptionLiteral.getInputStream()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.