public class UDTAttachment extends SerialisableAttachment
SerialisableAttachment having an UDTValue as
content.| Modifier and Type | Field and Description |
|---|---|
protected UDTValue |
udt
The content represented as
UDTValue. |
contentType, description, inlineName, name| Constructor and Description |
|---|
UDTAttachment(java.lang.String name,
java.lang.String description,
java.lang.String contentType,
UDTValue udt)
Creates an attachment having the designated name, description, content type
(MIME) and content.
|
UDTAttachment(java.lang.String name,
java.lang.String description,
java.lang.String contentType,
UDTValue udt,
boolean inline)
Creates an attachment having the designated name, description, content type (MIME) and content.
|
UDTAttachment(java.lang.String name,
java.lang.String description,
java.lang.String contentType,
UDTValue udt,
java.lang.String inlineName)
Creates an attachment having the designated name, description, content type (MIME) and content.
|
UDTAttachment(java.lang.String name,
java.lang.String description,
UDTValue udt)
Creates an attachment having the designated name, description and content.
|
UDTAttachment(java.lang.String name,
java.lang.String description,
UDTValue udt,
boolean inline)
Creates an attachment having the designated name, description and content.
|
UDTAttachment(java.lang.String name,
java.lang.String description,
UDTValue udt,
java.lang.String inlineName)
Creates an attachment having the designated name, description and content.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent()
Gets the content of the attachment represented as
InputStream. |
getContentType, getDescription, getInlineName, getNameprotected final UDTValue udt
UDTValue.public UDTAttachment(java.lang.String name,
java.lang.String description,
UDTValue udt)
name - The name of the attachment.description - The description of the attachment.udt - The content of the attachment represented as
UDTValue.public UDTAttachment(java.lang.String name,
java.lang.String description,
UDTValue udt,
boolean inline)
name - The name of the attachment.description - The description of the attachment.udt - The content of the attachment represented as UDTValue.inline - Whether to inline this attachment in case of an HTML message using the designated
name.public UDTAttachment(java.lang.String name,
java.lang.String description,
UDTValue udt,
java.lang.String inlineName)
name - The name of the attachment.description - The description of the attachment.udt - The content of the attachment represented as UDTValue.inlineName - The name used in the corresponding HTML message to refer to this attachment
to be inlined. Use null to not inline the attachment.public UDTAttachment(java.lang.String name,
java.lang.String description,
java.lang.String contentType,
UDTValue udt)
name - The name of the attachment.description - The description of the attachment.contentType - The content type (MIME) of the attachment.udt - The content of the attachment represented as
UDTValue.public UDTAttachment(java.lang.String name,
java.lang.String description,
java.lang.String contentType,
UDTValue udt,
boolean inline)
name - The name of the attachment.description - The description of the attachment.contentType - The content type (MIME) of the attachment.udt - The content of the attachment represented as UDTValue.inline - Whether to inline this attachment in case of an HTML message using the designated
name.public UDTAttachment(java.lang.String name,
java.lang.String description,
java.lang.String contentType,
UDTValue udt,
java.lang.String inlineName)
name - The name of the attachment.description - The description of the attachment.contentType - The content type (MIME) of the attachment.udt - The content of the attachment represented as UDTValue.inlineName - The name used in the corresponding HTML message to refer to this attachment
to be inlined. Use null to not inline the attachment.public java.io.InputStream getContent()
throws java.io.IOException
SerialisableAttachmentInputStream. InputStream cannot be serialised.getContent in class SerialisableAttachmentjava.io.IOException - If there are problems retrieving the content, for
instance converting the transferred serialisable data to an
InputStream, an IOException will be
thrown.