blob: 66539fc7326b5b869d2e3325b86fef1ca87306ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package com.libmailcore;
import java.util.List;
public class MessageBuilder extends AbstractMessage {
public MessageBuilder()
{
setupNative();
}
public native void setHTMLBody(String htmlBody);
public native String htmlBody();
public native void setTextBody(String textBody);
public native String textBody();
public native void setAttachments(List<Attachment> attachments);
public native List<AbstractPart> attachments();
public native void addAttachment(Attachment attachment);
public native void setRelatedAttachments(List<Attachment> attachments);
public native List<Attachment> relatedAttachments();
public native void addRelatedAttachment(Attachment attachment);
public native void setBoundaryPrefix(String boundaryPrefix);
public native String boundaryPrefix();
public native byte[] data();
public native byte[] dataForEncryption();
public native String htmlRendering(HTMLRendererTemplateCallback callback);
public native String htmlBodyRendering();
public native String plainTextRendering();
public native String plainTextBodyRendering(boolean stripWhitespace);
public native byte[] openPGPSignedMessageDataWithSignatureData(byte[] signature);
public native byte[] openPGPEncryptedMessageDataWithEncryptedData(byte[] encryptedData);
private native void setupNative();
}
|