aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/Attachment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/libmailcore/Attachment.java')
-rw-r--r--src/java/com/libmailcore/Attachment.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/java/com/libmailcore/Attachment.java b/src/java/com/libmailcore/Attachment.java
new file mode 100644
index 00000000..4ce03ced
--- /dev/null
+++ b/src/java/com/libmailcore/Attachment.java
@@ -0,0 +1,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();
+} \ No newline at end of file