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