org.apache.james.mime4j.message
Class BodyPart
java.lang.Object
org.apache.james.mime4j.message.Entity
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 . |
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 |
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:
UnsupportedOperationException
- if other
contains a SingleBody
that
does not support the copy()
operation.
IllegalArgumentException
- if other
contains a Body
that
is neither a Message
, Multipart
or
SingleBody
.
Copyright © 2004-2012 JBoss by Red Hat. All Rights Reserved.