org.apache.james.mime4j.message
Interface Body

All Known Subinterfaces:
BinaryBody, TextBody
All Known Implementing Classes:
AbstractBody, Message, Multipart

public interface Body

Encapsulates the body of an entity (see RFC 2045).

Version:
$Id: Body.java,v 1.4 2004/10/04 15:36:43 ntherning Exp $

Method Summary
 Entity getParent()
          Gets the parent of this body.
 void setParent(Entity parent)
          Sets the parent of this body.
 void writeTo(java.io.OutputStream out, int mode)
          Writes this body to the given stream in MIME message format.
 

Method Detail

getParent

Entity getParent()
Gets the parent of this body.

Returns:
the parent.

setParent

void setParent(Entity parent)
Sets the parent of this body.

Parameters:
parent - the parent.

writeTo

void writeTo(java.io.OutputStream out,
             int mode)
             throws java.io.IOException,
                    MimeException
Writes this body to the given stream in MIME message format.

Parameters:
out - the stream to write to.
mode - output mode MessageUtils
Throws:
java.io.IOException - on I/O errors.
MimeException


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.