org.apache.james.mime4j.message
Class BodyPart

java.lang.Object
  extended by org.apache.james.mime4j.message.Entity
      extended by org.apache.james.mime4j.message.BodyPart
All Implemented Interfaces:
Disposable

public class BodyPart
extends Entity

Represents a MIME body part (see RFC 2045).


Constructor Summary
BodyPart()
          Creates a new empty BodyPart.
BodyPart(BodyPart other)
          Creates a new BodyPart from the specified BodyPart.
 
Method Summary
 
Methods inherited from class org.apache.james.mime4j.message.Entity
dispose, getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMimeType, isMultipart, removeBody, setBody, setBody, setBody, setContentDisposition, setContentDisposition, setContentDisposition, setContentDisposition, setContentTransferEncoding, setFilename, setHeader, setMessage, setMultipart, setMultipart, setParent, setText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyPart

public BodyPart()
Creates a new empty BodyPart.


BodyPart

public BodyPart(BodyPart other)
Creates a new BodyPart from the specified BodyPart. The BodyPart instance is initialized with copies of header and body of the specified BodyPart. The parent entity of the new body part is null.

Parameters:
other - body part to copy.
Throws:
java.lang.UnsupportedOperationException - if other contains a SingleBody that does not support the copy() operation.
java.lang.IllegalArgumentException - if other contains a Body that is neither a Message, Multipart or SingleBody.


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