aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/MessageParser.java
blob: 2586a6d9fda3e8ba22c300dfc42a07b73c8176e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.libmailcore;

public class MessageParser extends AbstractMessage {
    public static native MessageParser messageParserWithData(byte[] messageData);
    public static native MessageParser messageParserWithContentsOfFile(String filename);
    
    public native AbstractPart mainPart();
    public native byte[] data();
    
    public native String htmlRendering(HTMLRendererTemplateCallback callback);
    public String htmlRendering()
    {
        return htmlRendering(null);
    }
    public native String htmlBodyRendering();
    public native String plainTextRendering();
    public native String plainTextBodyRendering(boolean stripWhitespace);
    
    private native void setupNative(byte[] messageData);
}