aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/Attachment.java
blob: 4ce03ced3d412a7b9ea3edf8bf62bbe2396086f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.libmailcore;

public class Attachment extends AbstractPart {
    public static native String mimeTypeForFilename(String filename);
    
    public native static Attachment attachmentWithContentsOfFile(String filename);
    public native static Attachment attachmentWithData(String filename, byte[] data);
    public native static Attachment attachmentWithHTMLString(String htmlString);
    public native static Attachment attachmentWithRFC822Message(byte[] messageData);
    public native static Attachment attachmentWithText(String text);
    
    public native byte[] data();
    public native void setData(byte[] data);
    
    public native String decodedString();
}