public class HeadersBodyElement extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.james.mailbox.model.Content | content | 
| Constructor and Description | 
|---|
| HeadersBodyElement(String name,
                  org.apache.james.mailbox.model.Content content) | 
| Modifier and Type | Method and Description | 
|---|---|
| InputStream | getInputStream()Return the Literal as  InputStream | 
| String | getName()The full name of the element fetched. | 
| void | noBody()Indicate that there is no text body in the message. | 
| long | size()Size of the literal content data. | 
public HeadersBodyElement(String name, org.apache.james.mailbox.model.Content content)
public void noBody()
            throws IOException
IOExceptionpublic long size()
          throws IOException
Literalsize in interface LiteralIOExceptionLiteral.size()public String getName()
FetchResponse.BodyElementFETCH
 command input.getName in interface FetchResponse.BodyElementFetchResponse.BodyElement.getName()public InputStream getInputStream() throws IOException
LiteralInputStreamgetInputStream in interface LiteralIOExceptionLiteral.getInputStream()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.