Qore jni Module  1.2.0
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 org.qore.jni.QoreObjectWrapper

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 More...
 
 Attachment (String name, String mime, String data, String enc) throws Throwable
 creates an Attachment object for a Message object More...
 
 Attachment (String name, String mime, String data) throws Throwable
 creates an Attachment object for a Message object More...
 
 Attachment (String name, String mime, byte[] data, String enc, Map< String, String > hdr) throws Throwable
 creates an Attachment object for a Message object More...
 
 Attachment (String name, String mime, byte[] data, String enc) throws Throwable
 creates an Attachment object for a Message object More...
 
 Attachment (String name, String mime, byte[] data) throws Throwable
 creates an Attachment object for a Message object More...
 
- 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
 
- Public Member Methods inherited from org.qore.jni.QoreObjectWrapper
 QoreObjectWrapper (QoreObject obj)
 creates the wrapper object with the Qore object
 
void release ()
 releases the Qore object; do not call any further methods on the object after this call
 
QoreObject getQoreObject ()
 returns the Qore object
 
String className ()
 returns the class name for the Qore object
 
boolean instanceOf (String class_name)
 returns true if the object is an instance of the given class
 

Additional Inherited Members

- Private Attributes inherited from org.qore.jni.QoreObjectWrapper
QoreObject obj
 the wrapper Qore object
 

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

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: