public class BodyPart extends Entity
| Constructor and Description |
|---|
BodyPart()
Creates a new empty
BodyPart. |
BodyPart(BodyPart other)
Creates a new
BodyPart from the specified
BodyPart. |
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, setTextpublic BodyPart()
BodyPart.public BodyPart(BodyPart other)
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.other - body part to copy.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-2012. All Rights Reserved.