Qore jni Module 2.4.0
Loading...
Searching...
No Matches
org.qore.lang.mailmessage.Attachment Class Reference

Java wrapper for the MailAttachment::Attachment class in Qore. More...

Inheritance diagram for org.qore.lang.mailmessage.Attachment:
org.qore.lang.mailmessage.Part

Public Member Methods

 Attachment (QoreObject ds)
 creates the object
 
 Attachment (String name, String mime, String data, String enc, Map< String, String > hdr) throws Throwable
 creates an Attachment object for a Message object
 
 Attachment (String name, String mime, String data, String enc) throws Throwable
 creates an Attachment object for a Message object
 
 Attachment (String name, String mime, String data) throws Throwable
 creates an Attachment object for a Message object
 
 Attachment (String name, String mime, byte[] data, String enc, Map< String, String > hdr) throws Throwable
 creates an Attachment object for a Message object
 
 Attachment (String name, String mime, byte[] data, String enc) throws Throwable
 creates an Attachment object for a Message object
 
 Attachment (String name, String mime, byte[] data) throws Throwable
 creates an Attachment object for a Message object
 
- Public Member Methods inherited from org.qore.lang.mailmessage.Part
 Part (QoreObject ds)
 creates the object
 
String getName () throws Throwable
 returns the name of the Part
 
String getMime () throws Throwable
 returns the mime type of the Part
 
Object getData () throws Throwable
 returns the data of the Part
 
String getTransferEncoding () throws Throwable
 returns the transfer encoding of the Part
 
Map< String, String > getHeaders () throws Throwable
 returns any headers for the Part
 

Detailed Description

Java wrapper for the MailAttachment::Attachment class in Qore.

Note
Loads and initializes the Qore library and the jni module in static initialization if necessary
Deprecated:
Use dynamic imports instead: import qoremod.MailMessage.Attachment;

Constructor & Destructor Documentation

◆ Attachment() [1/6]

org.qore.lang.mailmessage.Attachment.Attachment ( String  name,
String  mime,
String  data,
String  enc,
Map< String, String >  hdr 
) throws Throwable
inline

creates an Attachment object for a Message object

Parameters
namethe name of the attachment to be displayed in the message, normally a file name without any path
mimethe mime type for the message
datathe attachment data itself
encthe encoding type for the message (see MessageEncodings for possible values)
hdroptional headers for the MIME part for the attachment
Exceptions
UNKNOWN-ENCODINGthe message encoding value passed is unknown/unimplemented
INVALID-ENCODINGthe encoding given cannot be used with data given

◆ Attachment() [2/6]

org.qore.lang.mailmessage.Attachment.Attachment ( String  name,
String  mime,
String  data,
String  enc 
) throws Throwable
inline

creates an Attachment object for a Message object

Parameters
namethe name of the attachment to be displayed in the message, normally a file name without any path
mimethe mime type for the message
datathe attachment data itself
encthe encoding type for the message (see MessageEncodings for possible values)
Exceptions
UNKNOWN-ENCODINGthe message encoding value passed is unknown/unimplemented
INVALID-ENCODINGthe encoding given cannot be used with data given

◆ Attachment() [3/6]

org.qore.lang.mailmessage.Attachment.Attachment ( String  name,
String  mime,
String  data 
) throws Throwable
inline

creates an Attachment object for a Message object

Parameters
namethe name of the attachment to be displayed in the message, normally a file name without any path
mimethe mime type for the message
datathe attachment data itself
Exceptions
UNKNOWN-ENCODINGthe message encoding value passed is unknown/unimplemented
INVALID-ENCODINGthe encoding given cannot be used with data given

◆ Attachment() [4/6]

org.qore.lang.mailmessage.Attachment.Attachment ( String  name,
String  mime,
byte[]  data,
String  enc,
Map< String, String >  hdr 
) throws Throwable
inline

creates an Attachment object for a Message object

Parameters
namethe name of the attachment to be displayed in the message, normally a file name without any path
mimethe mime type for the message
datathe attachment data itself
encthe encoding type for the message (see MessageEncodings for possible values)
hdroptional headers for the MIME part for the attachment
Exceptions
UNKNOWN-ENCODINGthe message encoding value passed is unknown/unimplemented
INVALID-ENCODINGthe encoding given cannot be used with data given

◆ Attachment() [5/6]

org.qore.lang.mailmessage.Attachment.Attachment ( String  name,
String  mime,
byte[]  data,
String  enc 
) throws Throwable
inline

creates an Attachment object for a Message object

Parameters
namethe name of the attachment to be displayed in the message, normally a file name without any path
mimethe mime type for the message
datathe attachment data itself
encthe encoding type for the message (see MessageEncodings for possible values)
Exceptions
UNKNOWN-ENCODINGthe message encoding value passed is unknown/unimplemented
INVALID-ENCODINGthe encoding given cannot be used with data given

◆ Attachment() [6/6]

org.qore.lang.mailmessage.Attachment.Attachment ( String  name,
String  mime,
byte[]  data 
) throws Throwable
inline

creates an Attachment object for a Message object

Parameters
namethe name of the attachment to be displayed in the message, normally a file name without any path
mimethe mime type for the message
datathe attachment data itself
Exceptions
UNKNOWN-ENCODINGthe message encoding value passed is unknown/unimplemented
INVALID-ENCODINGthe encoding given cannot be used with data given

The documentation for this class was generated from the following file: