Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.james.mime4j.message
Interface Body

All Superinterfaces:
  Disposable

All Known Subinterfaces:
  BinaryBody, TextBody

All Known Implementing Classes:
  AbstractBody, Message, Multipart

    public interface Body

extends Disposable

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.

Methods inherited from interface org.apache.james.mime4j.message.Disposable
`dispose`

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` - compatibility mode: `MessageUtils.LENIENT`, `MessageUtils.STRICT_ERROR`, `MessageUtils.STRICT_IGNORE`
  Throws:
    `java.io.IOException` - on I/O errors.
    `MimeException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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