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.BodyElement
FETCH
command input.getName
in interface FetchResponse.BodyElement
FetchResponse.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.MailboxException
public long size()
Literal
size
in interface Literal
Literal.size()
public InputStream getInputStream() throws IOException
Literal
InputStream
getInputStream
in interface Literal
IOException
Literal.getInputStream()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.