blob: 60a325bc98f0882383643e9a4a7171391202da65 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
package com.libmailcore;
import java.util.AbstractList;
/** Abstract MIME part. */
public class AbstractPart extends NativeObject {
/**
Returns the type of the part.
@see com.libmailcore.PartType
*/
public native int partType();
/**
Sets the type of the part.
@see com.libmailcore.PartType
*/
public native void setPartType(int partType);
/** Returns filename of the attachment. */
public native String filename();
/** Sets the filename of the attachment. */
public native void setFilename(String filename);
/** Returns the charset encoding of the attachment. */
public native String charset();
/** Sets the charset encoding of the attachment. */
public native void setCharset(String charset);
/**
Returns the uniqueID of the attachment.
The uniqueID is an identifier unique in the scope of the message.
*/
public native String uniqueID();
/** Sets the unique identifier of the attachment. */
public native void setUniqueID(String uniqueID);
/** Returns the Content-ID of the attachment. */
public native String contentID();
/** Sets the Content-ID of the attachment. */
public native void setContentID(String contentID);
/** Returns the Content-Location of the attachment. */
public native String contentLocation();
/** Sets the Content-Location of the attachment. */
public native void setContentLocation(String contentLocation);
/** Returns the Content-Description of the attachment. */
public native String contentDescription();
/** Sets the Content-Description of the attachment. */
public native void setContentDescription(String contentDescription);
/** Returns the hint about whether the attachment should be shown inline. */
public native boolean isInlineAttachment();
/** Sets the hint about whether the attachment should be shown inline. */
public native void setInlineAttachment(boolean inlineAttachment);
/**
Returns the MIME part with the given Content-ID.
@see com.libmailcore.AbstractPart#contentID()
*/
public native AbstractPart partForContentID(String contentID);
/**
Returns the MIME part with the given uniqueID.
@see com.libmailcore.AbstractPart#uniqueID()
*/
public native AbstractPart partForUniqueID(String uniqueID);
/** Sets a Content-Type parameter. */
public native void setContentTypeParameter(String name, String value);
/** Returns a Content-Type parameter for a given name. */
public native String contentTypeParameterValueForName(String name);
/** Returns the list of all parameters names of Content-Type. */
public native AbstractList<String> allContentTypeParametersNames();
}
|